• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to use NSStream
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Trying to use NSStream (From: Development <email@hidden>)

  • Prev by Date: beyond MV and (one) C
  • Next by Date: Finder/iTunes Sidebar View?
  • Previous by thread: Re: Trying to use NSStream
  • Next by thread: NSPopupButtonCell alignment
  • Index(es):
    • Date
    • Thread