• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
DO Client can't connect, problem with code or Airport firewall?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: DO Client can't connect, problem with code or Airport firewall?
      • From: Keith Gugliotto <email@hidden>
  • Prev by Date: Re: libjpeg
  • Next by Date: Re: Printing example in Cocoa Programming for MacOS X
  • Previous by thread: IPv6 is coming -- watch your use of IP addresses
  • Next by thread: Re: DO Client can't connect, problem with code or Airport firewall?
  • Index(es):
    • Date
    • Thread