• 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: Sending data with CFSocket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending data with CFSocket


  • Subject: Re: Sending data with CFSocket
  • From: Quinn <email@hidden>
  • Date: Tue, 1 Feb 2005 06:54:07 +0000

At 12:23 -0700 21/1/05, Ryan M Joseph wrote:
I am working a simple client/server application using CFSocket (for my first time) and ran into some problems when attempting sending data. I am not very experienced with sockets but I think I setup the the design as CFSocket intended. The program gets quite far before the problem so I will omit some details.

* First I setup CFSocketCreate (using AF_INET, SOCK_STREAM, IPPROTO_TCP, kCFSocketDataCallBack) for the server.

As this is a listening socket, you should be setting kCFSocketAcceptCallBack here. See the comments related to this constant at the top of "CFSocket.h". Also, see the Echo sample code "/Developer/Examples/Networking/Echo/".


S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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


  • Prev by Date: Re: Downloading firmware
  • Next by Date: Re: Mail Settings
  • Previous by thread: Re: Downloading firmware
  • Next by thread: add 2nd loopback interface
  • Index(es):
    • Date
    • Thread