mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Add default for switching between NSSocketPort and NSMessagePort as the default NSPort class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@19832 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3a56cda1ce
commit
0fe7535f25
4 changed files with 37 additions and 4 deletions
|
@ -392,6 +392,13 @@ ihandler(int sig)
|
|||
*/
|
||||
if (0 && isLocal == YES && service != GDNC_NETWORK)
|
||||
{
|
||||
/* If this code is reactivated, it needs to deal correctly with the
|
||||
case where NSSocketPort shouldn't be used (because it isn't the
|
||||
default port). Something like
|
||||
NSPort *port = [NSMessagePort port];
|
||||
or just
|
||||
NSPort *port = [NSPort port];
|
||||
*/
|
||||
NSPort *port = [NSSocketPort portWithNumber: 0
|
||||
onHost: [NSHost localHost]
|
||||
forceAddress: @"127.0.0.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue