Re: Trying to use NSStream
Re: Trying to use NSStream
- Subject: Re: Trying to use NSStream
- From: Keary Suska <email@hidden>
- Date: Sun, 13 Jan 2008 10:15:09 -0700
- Thread-topic: Trying to use NSStream
on 1/12/08 4:24 PM, email@hidden purportedly said:
> When I try to send a request to the serve I get no data back...
> However I have no trouble at all communicating with http servers. Any
> way this is my write code:
The difference between http and pop3 is that http is generally
transactional, i.e. in a single connection you send a request and the server
responds. At that point, you (or the server) can close the connection
without concern. This is why http is generally considered stateless. POP,
however, requires a series of request/response transactions on a single
connection.
So the first thing you may want to check is whether you are closing the
connection after the first transaction (request/response), such as in
response to a NSStreamEventEndEncountered.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden