mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Add missing code to create IPV6 streams
This commit is contained in:
parent
01c73a8031
commit
cc90b2d5a8
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue