I have been using straight BSD sockets for network communication for quite some time now, and wanted to try and use the 'nicer' way using the NSFileHandle, however I cannot seem
to get the notification of when a socket as connected, using the code below, either creating the socket from BSD style C functions, or using NSSocketPort. I know the notification handler is working since firing the notification manually (as seen in the commented out code) does give me the notification. I am sure there is something really stupid I have overlooked, if anyone could point me in the right direction that would be more than appareciated.
<CMH/>
<x-tad-bigger>@implementation</x-tad-bigger><x-tad-bigger> server
</x-tad-bigger><x-tad-bigger>// now listen for an incoming connection</x-tad-bigger><x-tad-bigger>
NSFileHandle *fh = [[NSFileHandle alloc] initWithFileDescriptor:[socketPort socket]];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden