mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
more ipv6 specifics.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3081 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
90770c1347
commit
a4f5def446
1 changed files with 7 additions and 3 deletions
|
@ -443,7 +443,7 @@ char *NET_AdrToString (char *s, int len, netadr_t a)
|
|||
#ifdef IRCCONNECT
|
||||
case NA_IRC:
|
||||
if (*a.address.irc.channel)
|
||||
snprintf (s, len, "irc://%s@", a.address.irc.user, a.address.irc.channel);
|
||||
snprintf (s, len, "irc://%s@%s", a.address.irc.user, a.address.irc.channel);
|
||||
else
|
||||
snprintf (s, len, "irc://%s", a.address.irc.user);
|
||||
break;
|
||||
|
@ -2043,10 +2043,12 @@ ftenet_generic_connection_t *FTENET_TCPConnect_EstablishConnection(int affamily,
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef IPPROTO_IPV6
|
||||
ftenet_generic_connection_t *FTENET_TCP6Connect_EstablishConnection(qboolean isserver, char *address)
|
||||
{
|
||||
return FTENET_TCPConnect_EstablishConnection(AF_INET6, isserver, address);
|
||||
}
|
||||
#endif
|
||||
|
||||
ftenet_generic_connection_t *FTENET_TCP4Connect_EstablishConnection(qboolean isserver, char *address)
|
||||
{
|
||||
|
@ -2742,10 +2744,12 @@ void NET_EnsureRoute(ftenet_connections_t *collection, char *routename, char *ho
|
|||
case NA_TCP:
|
||||
FTENET_AddToCollection(collection, routename, host, FTENET_TCP4Connect_EstablishConnection);
|
||||
break;
|
||||
#ifdef IPPROTO_IPV6
|
||||
case NA_TCPV6:
|
||||
FTENET_AddToCollection(collection, routename, host, FTENET_TCP6Connect_EstablishConnection);
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
#ifdef IRCCONNECT
|
||||
case NA_IRC:
|
||||
FTENET_AddToCollection(collection, routename, host, FTENET_IRCConnect_EstablishConnection);
|
||||
|
@ -3186,9 +3190,11 @@ void SVNET_AddPort(void)
|
|||
case NA_TCP:
|
||||
FTENET_AddToCollection(svs.sockets, NULL, s, FTENET_TCP4Connect_EstablishConnection);
|
||||
break;
|
||||
#ifdef IPPROTO_IPV6
|
||||
case NA_TCPV6:
|
||||
FTENET_AddToCollection(svs.sockets, NULL, s, FTENET_TCP6Connect_EstablishConnection);
|
||||
break;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@ -3256,8 +3262,6 @@ void NET_InitClient(void)
|
|||
#ifndef CLIENTONLY
|
||||
FTENET_AddToCollection(cls.sockets, "CLLoopback", port, FTENET_Loop_EstablishConnection);
|
||||
#endif
|
||||
// FTENET_AddToCollection(cls.sockets, "CLTCP6", port, FTENET_TCP6Connect_EstablishConnection);
|
||||
// FTENET_AddToCollection(cls.sockets, "CLTCP4", port, FTENET_TCP4Connect_EstablishConnection);
|
||||
FTENET_AddToCollection(cls.sockets, "CLUDP4", port, FTENET_UDP4_EstablishConnection);
|
||||
#ifdef IPPROTO_IPV6
|
||||
FTENET_AddToCollection(cls.sockets, "CLUDP6", port, FTENET_UDP6_EstablishConnection);
|
||||
|
|
Loading…
Reference in a new issue