net.h
Index
#ifndef _DUNET_H
#define _DUNET_H
typedef int SOCKET;
typedef enum {E_NET_ERRNO=-1, E_NET_OK=0} NetErrnoType;
#include "server.h"
const char *NetErrStr();
NetErrnoType NetErrNo();
SOCKET NetMakeWelcome(int port);
int NetNewConnection(SOCKET w, ClientPtr newc);
int NetClientDataAvail(ClientPtr c);
char *NetGetClientHostname(ClientPtr c, char *hname, int maxhostlen);
void NetCloseConnection(ClientPtr c);
#endif /* _DUNET_H */