Skip navigation.
 
mlRe: Trying to use NSStream
FROM : Keary Suska
DATE : Sun Jan 13 18:15:09 2008

on 1/12/08 4:24 PM, <email_removed> 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"

Related mailsAuthorDate
mlTrying to use NSStream Development Jan 13, 00:24
mlRe: Trying to use NSStream Development Jan 13, 02:16
mlRe: Trying to use NSStream Andrew Farmer Jan 13, 02:36
mlRe: Trying to use NSStream Brady Duga Jan 13, 02:51
mlRe: Trying to use NSStream Keary Suska Jan 13, 18:15
mlRe: Trying to use NSStream Development Jan 13, 20:19
mlRe: Trying to use NSStream -another question Development Jan 13, 23:41
mlRe: Trying to use NSStream -another question Andrew Farmer Jan 14, 00:12
mlRe: Trying to use NSStream Ryan Homer Jan 14, 14:28