ownership with sendto / CFSocketSendData
ownership with sendto / CFSocketSendData
- Subject: ownership with sendto / CFSocketSendData
- From: email@hidden (Hado Hein)
- Date: Wed, 24 Feb 2010 15:15:05 +0100
- Organization: handmade !
In a CFPlugIn I'm using sendto to broadcast udp packets.
Now I wanted to change the code to CFSocket. In creating, binding and
receiving this was no problem.
In sending I don't understand the naming convention of CFSocketSendData.
I can create af CFData..NoBytesCopy-Ref. from my packet buffer.
If I send it with CFSocketSendData is the Data afterwards released. The
docs don't say this.
If it is not released it should be valid on my next send-cycle. So I'd
reuse it, the pointed to data is read again (it mitght have changed in
the meantime) and sended out. This is what I'd expect.
Which one is correct?
rgds,
--
Hado Hein (KSK, DTHG), master craftsman of stagecrafts, Berlin
followme office +49.30.91688488
www.beleuchtungsbildner.de - Stage Lighting Directing
www.batchmaker.de - Stage Lighting Design, Control and Routing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden