DO Client can't connect, problem with code or Airport firewall?
DO Client can't connect, problem with code or Airport firewall?
- Subject: DO Client can't connect, problem with code or Airport firewall?
- From: Drew Cunningham <email@hidden>
- Date: Wed, 24 Apr 2002 14:30:59 -0400
Could someone please look at my DO code? The client portion can't seem
to
connect, and I don't know if it is my code, or the fact that the network
is through Airport. Thanks in advance!
NSPort *localPort, *transferPort;
unsigned short portAddress = 1331;
localPort = [[NSSocketPort alloc] init];
if( [clientCell state] == NSOnState ) // in case of client
{
transferPort = [[NSSocketPort alloc]
initRemoteWithTCPPort:portAddress host:@"10.0.1.201"];
theConnection = [NSConnection connectionWithReceivePort:localPort
sendPort:transferPort];
sharedData = [[theConnection rootProxy] retain];
}
else // in case of server
{
transferPort = [[NSSocketPort alloc] initWithTCPPort:portAddress];
sharedData = [[SharedDataObject alloc] init];
theConnection = [[NSConnection alloc]
initWithReceivePort:transferPort sendPort:nil];
[theConnection setRootObject:sharedData];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.