//=============================================================================
-char *UDP_AddrToString (struct qsockaddr *addr)
+char *UDP_AddrToString (const struct qsockaddr *addr)
{
static char buffer[22];
int haddr;
//=============================================================================
-int UDP_GetNameFromAddr (struct qsockaddr *addr, char *name)
+int UDP_GetNameFromAddr (const struct qsockaddr *addr, char *name)
{
struct hostent *hostentry;
//=============================================================================
-int UDP_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2)
+int UDP_AddrCompare (const struct qsockaddr *addr1, const struct qsockaddr *addr2)
{
if (addr1->sa_family != addr2->sa_family)
return -1;
int UDP_Read (int socket, qbyte *buf, int len, struct qsockaddr *addr);
int UDP_Write (int socket, qbyte *buf, int len, struct qsockaddr *addr);
int UDP_Broadcast (int socket, qbyte *buf, int len);
-char *UDP_AddrToString (struct qsockaddr *addr);
+char *UDP_AddrToString (const struct qsockaddr *addr);
int UDP_StringToAddr (const char *string, struct qsockaddr *addr);
int UDP_GetSocketAddr (int socket, struct qsockaddr *addr);
-int UDP_GetNameFromAddr (struct qsockaddr *addr, char *name);
+int UDP_GetNameFromAddr (const struct qsockaddr *addr, char *name);
int UDP_GetAddrFromName (const char *name, struct qsockaddr *addr);
-int UDP_AddrCompare (struct qsockaddr *addr1, struct qsockaddr *addr2);
+int UDP_AddrCompare (const struct qsockaddr *addr1, const struct qsockaddr *addr2);
int UDP_GetSocketPort (struct qsockaddr *addr);
int UDP_SetSocketPort (struct qsockaddr *addr, int port);