I've been playing with sockets, and I have a problem.
When I try to create a socket port like this:
incomingSocket = [[NSSocketPort alloc] initWithTCPPort:PORT_NUMBER];
I find that 'incomingSocket' only gets created if PORT_NUMBER is zero
For a zero value, according to Foundation.pdf, a port number is selected
by the system. My problem is that I want to use a *specific* port
number - I'm working on a Usenet client, and IIRC NNTP usually uses
port 119. (Yes, I realise the above is for local working - I'm trying
to keep things simple at this stage.) So how ...