mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Remove a dead function.
This commit is contained in:
parent
bc62988524
commit
77dcd07b37
7 changed files with 0 additions and 45 deletions
|
@ -131,16 +131,6 @@ int UDP_Broadcast (int socket, byte *buf, int len);
|
|||
*/
|
||||
const char *UDP_AddrToString (struct qsockaddr *addr);
|
||||
|
||||
/** Convert a human readable address to a quake address.
|
||||
|
||||
Parses a.b.c.d:p style addresses.
|
||||
|
||||
\param[in] string The human readable address to be converted.
|
||||
\param[out] addr The resulting address of the conversion.
|
||||
\return 0
|
||||
*/
|
||||
int UDP_StringToAddr (const char *string, struct qsockaddr *addr);
|
||||
|
||||
/** Retrieve the address to which the socket is bound.
|
||||
|
||||
\param socket The socket for which the address will be retrieved.
|
||||
|
|
|
@ -54,7 +54,6 @@ int WINS_Read (int socket, byte *buf, int len, struct qsockaddr *addr);
|
|||
int WINS_Write (int socket, byte *buf, int len, struct qsockaddr *addr);
|
||||
int WINS_Broadcast (int socket, byte *buf, int len);
|
||||
const char *WINS_AddrToString (struct qsockaddr *addr);
|
||||
int WINS_StringToAddr (const char *string, struct qsockaddr *addr);
|
||||
int WINS_GetSocketAddr (int socket, struct qsockaddr *addr);
|
||||
int WINS_GetNameFromAddr (struct qsockaddr *addr, char *name);
|
||||
int WINS_GetAddrFromName (const char *name, struct qsockaddr *addr);
|
||||
|
|
|
@ -406,7 +406,6 @@ typedef struct {
|
|||
int (*Write) (int socket, byte *buf, int len, struct qsockaddr *addr);
|
||||
int (*Broadcast) (int socket, byte *buf, int len);
|
||||
const char * (*AddrToString) (struct qsockaddr *addr);
|
||||
int (*StringToAddr) (const char *string, struct qsockaddr *addr);
|
||||
int (*GetSocketAddr) (int socket, struct qsockaddr *addr);
|
||||
int (*GetNameFromAddr) (struct qsockaddr *addr, char *name);
|
||||
int (*GetAddrFromName) (const char *name, struct qsockaddr *addr);
|
||||
|
|
|
@ -89,7 +89,6 @@ net_landriver_t net_landrivers[MAX_NET_DRIVERS] = {
|
|||
UDP_Write,
|
||||
UDP_Broadcast,
|
||||
UDP_AddrToString,
|
||||
UDP_StringToAddr,
|
||||
UDP_GetSocketAddr,
|
||||
UDP_GetNameFromAddr,
|
||||
UDP_GetAddrFromName,
|
||||
|
|
|
@ -436,20 +436,6 @@ UDP_AddrToString (struct qsockaddr *addr)
|
|||
return buffer->str;
|
||||
}
|
||||
|
||||
int
|
||||
UDP_StringToAddr (const char *string, struct qsockaddr *addr)
|
||||
{
|
||||
int ha1, ha2, ha3, ha4, hp, ipaddr;
|
||||
|
||||
sscanf (string, "%d.%d.%d.%d:%d", &ha1, &ha2, &ha3, &ha4, &hp);
|
||||
ipaddr = (ha1 << 24) | (ha2 << 16) | (ha3 << 8) | ha4;
|
||||
|
||||
addr->qsa_family = AF_INET;
|
||||
((struct sockaddr_in *) addr)->sin_addr.s_addr = htonl (ipaddr);
|
||||
((struct sockaddr_in *) addr)->sin_port = htons (hp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
UDP_GetSocketAddr (int socket, struct qsockaddr *addr)
|
||||
{
|
||||
|
|
|
@ -89,7 +89,6 @@ net_landriver_t net_landrivers[MAX_NET_DRIVERS] = {
|
|||
WINS_Write,
|
||||
WINS_Broadcast,
|
||||
WINS_AddrToString,
|
||||
WINS_StringToAddr,
|
||||
WINS_GetSocketAddr,
|
||||
WINS_GetNameFromAddr,
|
||||
WINS_GetAddrFromName,
|
||||
|
|
|
@ -502,23 +502,6 @@ WINS_AddrToString (struct qsockaddr *addr)
|
|||
|
||||
//=============================================================================
|
||||
|
||||
int
|
||||
WINS_StringToAddr (const char *string, struct qsockaddr *addr)
|
||||
{
|
||||
int ha1, ha2, ha3, ha4, hp;
|
||||
int ipaddr;
|
||||
|
||||
sscanf (string, "%d.%d.%d.%d:%d", &ha1, &ha2, &ha3, &ha4, &hp);
|
||||
ipaddr = (ha1 << 24) | (ha2 << 16) | (ha3 << 8) | ha4;
|
||||
|
||||
addr->qsa_family = AF_INET;
|
||||
((struct sockaddr_in *) addr)->sin_addr.s_addr = htonl (ipaddr);
|
||||
((struct sockaddr_in *) addr)->sin_port = htons ((unsigned short) hp);
|
||||
return 0;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
||||
int
|
||||
WINS_GetSocketAddr (int socket, struct qsockaddr *addr)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue