modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / network.h
blob7c56038ae7acc321ac8505ad90a1e4721cb683da
1 #ifndef INCLUDED_NETWORK_H
2 #define INCLUDED_NETWORK_H
4 #ifndef CONFIG
5 #define CONFIG "config.h"
6 #endif // CONFIG
7 #include CONFIG
9 #ifndef _GNU_SOURCE
10 #define _GNU_SOURCE
11 #endif
13 #include "types.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)
22 #ifndef NO_SOCKETS
24 void closeAllListeningSockets();
25 BOOL addListeningSocket(const char *const addr);
26 __pure int_fast8_t checkProtocolStack(const int addressfamily);
28 #endif // NO_SOCKETS
30 int runServer();
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