Re: NSConnection hostname
Re: NSConnection hostname
- Subject: Re: NSConnection hostname
- From: "Rafael K. Kobylinski" <email@hidden>
- Date: Wed, 20 Feb 2002 22:50:23 +0100
The problem now is that I need to connect to a computer other than
the localHost, so I need a way to search for computers on the local
network, that have an IP address but no hostname.
Could someone tell me how I go about searching for a DO server on a network,
and then using its IP address (since there are no host names) to
make an NSConnection?
Search the archives of cocoa-dev and macosx-dev. There has been a lot
of discussion about this issue and even sample code posted. You will
have to create a NSConnection with a NSSocketPort and specify an IP
address and a port number for both the server and the client.
Take a look at the last part of the following (there is a typo in one
of the method names, but otherwise it worked for me):
http://www.cocoadevcentral.com/tutorials/showpage.php?show=00000038.php
--
Rafael K. Kobylinski Email: email@hidden
Institut f|r Informatik Tel. : ++ 49 89 289 22391
Technische Universitdt M|nchen Cell.: ++ 49 177 7 495020
_______________________________________________
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.