• 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
CFSocket questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFSocket questions.


  • Subject: CFSocket questions.
  • From: Jeremy Thompson <email@hidden>
  • Date: Wed, 23 Oct 2013 08:29:26 -0700
  • Thread-topic: CFSocket questions.

I am new to mac programming and Cfsockets.  I have some legacy code that I
am porting to x86 it still uses carbon.  I can't move to cocoa yet I just
need to get this code functioning on newer mac hardware.  I have
successfully set up a CFSocket based server model in the carbon based
project that can receive data and echo it back to me.  The problem now is
that I must receive this data then process it as a OSX memory type Handle
it will then return me a Handle which I must send.  I am not clear on a
model of actually sending pointers or structs with CFSocketSendData.  It
wants to use the CFDataRef in which the send buffer is only a UInt8.
Information on this seems a little hard to find and I was wondering if
anyone on the list had insight.  In the past working with bsd sockets I
could send data like this

		Send(fd, &data, sizeof(data),0);

It would seem that CFSockets requires more eloquence than that.  Thanks
for any info.

~Jeremy





 _______________________________________________
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


  • Follow-Ups:
    • Re: CFSocket questions.
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: Determining current IPv4 WiFi address of iOS device?
  • Next by Date: Re: CFSocket questions.
  • Previous by thread: Re: Determining current IPv4 WiFi address of iOS device?
  • Next by thread: Re: CFSocket questions.
  • Index(es):
    • Date
    • Thread