X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=net_wipx.h;h=c5983530d15427f644c9c9cb2bc83f81847a710d;hp=ed82dc1d97c658b5b02df7266256069bc855383a;hb=d634ac06383b4927e3354605e5261902eed22e99;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14 diff --git a/net_wipx.h b/net_wipx.h index ed82dc1d..c5983530 100644 --- a/net_wipx.h +++ b/net_wipx.h @@ -19,6 +19,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // net_wipx.h +#ifndef NET_WIPX_H +#define NET_WIPX_H + int WIPX_Init (void); void WIPX_Shutdown (void); void WIPX_Listen (qboolean state); @@ -26,9 +29,9 @@ int WIPX_OpenSocket (int port); int WIPX_CloseSocket (int socket); int WIPX_Connect (int socket, struct qsockaddr *addr); int WIPX_CheckNewConnections (void); -int WIPX_Read (int socket, byte *buf, int len, struct qsockaddr *addr); -int WIPX_Write (int socket, byte *buf, int len, struct qsockaddr *addr); -int WIPX_Broadcast (int socket, byte *buf, int len); +int WIPX_Read (int socket, qbyte *buf, int len, struct qsockaddr *addr); +int WIPX_Write (int socket, qbyte *buf, int len, struct qsockaddr *addr); +int WIPX_Broadcast (int socket, qbyte *buf, int len); char *WIPX_AddrToString (struct qsockaddr *addr); int WIPX_StringToAddr (char *string, struct qsockaddr *addr); int WIPX_GetSocketAddr (int socket, struct qsockaddr *addr); @@ -37,3 +40,6 @@ int WIPX_GetAddrFromName (char *name, struct qsockaddr *addr); int WIPX_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2); int WIPX_GetSocketPort (struct qsockaddr *addr); int WIPX_SetSocketPort (struct qsockaddr *addr, int port); + +#endif +