00001 #ifndef _m_net_h
00002 #define _m_net_h
00003
00009 #include "maceConfig.h"
00010
00011 #ifdef HAVE_NETINET_IN_H
00012 #include "netinet/in.h"
00013 #endif
00014
00015 #ifdef HAVE_NETINET_TCP_H
00016 #include "netinet/tcp.h"
00017 #endif
00018
00019 #ifdef HAVE_NETDB_H
00020 #include "netdb.h"
00021 #endif
00022
00023 #ifdef HAVE_SYS_SELECT_H
00024 #include "sys/select.h"
00025 #endif
00026
00027 #ifdef HAVE_SYS_SOCKET_H
00028 #include "sys/socket.h"
00029 #endif
00030
00031 #ifdef HAVE_ARPA_INET_H
00032 #include "arpa/inet.h"
00033 #endif
00034
00035 #if ! ( defined(HAVE_ARPA_INET_H) || defined(HAVE_SYS_SOCKET_H) || defined(HAVE_SYS_SELECT_H) || defined(HAVE_NETDB_H) || defined(HAVE_NETINET_IN_H) )
00036 #include "windows.h"
00037 #include "winsock2.h"
00038 #include "ws2tcpip.h"
00039
00040 #if defined(WSAENOTCONN) && ! defined(ENOTCONN)
00041
00042
00043
00044
00045
00046
00047 #define NO_SIGPIPE
00048 #endif
00049
00050 #endif
00051
00052 #endif //_m_net_h