mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
fix initial state of incoming connection streams
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3c4ff69d69
commit
152601c977
2 changed files with 11 additions and 0 deletions
|
@ -2566,6 +2566,12 @@ setNonBlocking(SOCKET fd)
|
|||
[outs _setAddress: addr];
|
||||
[ins _setSock: acceptReturn];
|
||||
[outs _setSock: acceptReturn];
|
||||
[ins _setStatus: NSStreamStatusOpen];
|
||||
[outs _setStatus: NSStreamStatusOpen];
|
||||
/* Set property to indicate that the input stream was accepted by
|
||||
* a listening socket (server) rather than produced by an outgoing
|
||||
* connection (client).
|
||||
*/
|
||||
[ins setProperty: @"YES" forKey: @"IsServer"];
|
||||
}
|
||||
if (inputStream)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue