Skip to content

Commit

Permalink
Add missing code to create IPV6 streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Frith-Macdonald committed Aug 19, 2023
1 parent 01c73a8 commit cc90b2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/win32/NSStream.m
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,16 @@ + (void) getStreamsToHost: (NSHost *)host
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
Expand Down

0 comments on commit cc90b2d

Please sign in to comment.