CFSocket questions.
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