2 * $Source: /cvs/cvsroot/d2x/main/ipclient.h,v $
5 * $Date: 2002-02-06 09:22:42 $
7 * ipclient.h - udp/ip client code
8 * added 2000/02/07 Matt Mueller
10 * $Log: not supported by cvs2svn $
25 void ip_sendtoall(char *buf,int len);
26 int ip_connect_manual(char *textaddr);//make it extern C so that it can be called from .c files.
27 //void ip_portshift(ubyte*qhbuf,const char *cs);
29 int arch_ip_get_my_addr(ushort myport);
30 int arch_ip_open_socket(int port);
31 void arch_ip_close_socket(void);
32 int arch_ip_recvfrom(char *outbuf,int outbufsize,struct ipx_recv_data *rd);
33 int arch_ip_PacketReady(void);
34 int arch_ip_queryhost(ip_addr *addr,char *buf,ushort baseport);
36 int ipx_ip_GetMyAddress(void);
48 #define MSGHDR "IPX_ip: "
50 static inline void msg(const char *fmt,...)
60 #define FAIL(m...) do { msg(#m); return -1; } while (0)
62 static inline void chk(void *p){
64 msg("FATAL: Virtual memory exhausted!");