1 #ifndef INCLUDED_NETWORK_H
2 #define INCLUDED_NETWORK_H
5 #define CONFIG "config.h"
17 int_fast8_t sendrecv(SOCKET sock
, BYTE
*data
, int len
, int_fast8_t do_send
);
19 #define _recv(s, d, l) sendrecv(s, (BYTE *)d, l, 0)
20 #define _send(s, d, l) sendrecv(s, (BYTE *)d, l, !0)
24 void closeAllListeningSockets();
25 BOOL
addListeningSocket(const char *const addr
);
26 __pure
int_fast8_t checkProtocolStack(const int addressfamily
);
31 SOCKET
connectToAddress(const char *const addr
, const int AddressFamily
, int_fast8_t showHostName
);
32 int_fast8_t isDisconnected(const SOCKET s
);
34 #endif // INCLUDED_NETWORK_H