Re: Telnet Networking Example
Re: Telnet Networking Example
- Subject: Re: Telnet Networking Example
- From: Eli Bach <email@hidden>
- Date: Thu, 23 Jul 2009 15:02:37 -0700
On Jul 23, 2009, at 2:56 PM, DerNalia wrote:
you're right, oStream isn't pointing to anything, but shouldn't
[NSStream getStreamsToHost:host
port:server_port
inputStream:&iStream
outputStream:&oStream];
take care of that?
I figured that having Garbage Collection on might be the problem, so
I moved all the open stream code to the same method that calls
getStreamsToHost, but I get the same result. So, just to see if the
Garbage Collector was pulling a fast one on me, I temporarily turned
it off. But I get the same result.
It should.
Have you stepped over this line of code and verified that iStream and
oStream are set to non-nil values after this line of code?
And is all this code (getStreamsToHost:... and write:maxLength: ) in
the same function/method and if not, is the value saved/passed between
the various functions/methods?
Eli
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden