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:
alexm 2004-08-07 00:44:15 +00:00
parent 3a56cda1ce
commit 0fe7535f25
4 changed files with 37 additions and 4 deletions

View file

@ -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"