Initial commit of updated IPv6

This commit is contained in:
Royal Stewart 2023-07-25 10:06:20 -06:00
parent d643dad9b3
commit 337ebbea0b
4 changed files with 38 additions and 29 deletions

View file

@ -951,6 +951,15 @@
initToAddr: address port: port]);
sock = socket(PF_INET, SOCK_STREAM, 0);
//IPv6
if(!ins)
{
#if defined(AF_INET6)
ins = (GSSocketStream*)AUTORELEASE([[GSInet6InputStream alloc] initToAddr: address port: port]);
outs = (GSSocketStream*)AUTORELEASE([[GSInet6OutputStream alloc] initToAddr: address port: port]);
#endif
}
/*
* Windows only permits a single event to be associated with a socket
* at any time, but the runloop system only allows an event handle to