Add missing code to create IPV6 streams

This commit is contained in:
Richard Frith-Macdonald 2023-08-19 14:25:30 +01:00
parent 01c73a8031
commit cc90b2d5a8

View file

@ -951,6 +951,16 @@
initToAddr: address port: port]);
sock = socket(PF_INET, SOCK_STREAM, 0);
if (!ins)
{
#if defined(PF_INET6)
ins = AUTORELEASE([[GSInet6InputStream alloc]
initToAddr: address port: port]);
outs = 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