mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Initial commit of updated IPv6
This commit is contained in:
parent
d643dad9b3
commit
337ebbea0b
4 changed files with 38 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue