When writing a porotocol based on UDP/IP, a header is needed. This cause a duplicate copy of the data : ... (user code) sendBuffer (struct prot-address addr, void* pnt, int length); ....
My code : struct sendDataType sendData; memcpy (*sendData.data, pnt, length); sendData.header = bla bla; sendto (s, &sendData, sizeof (sendData), 0, addressee, addresseeLengh); - Is there alternative interface ? (A portable & standart interface will be better) - Should I use raw sockets ? Tnx. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Doubt is not a pleasant condition, but certainty is absurd." [Voltaire] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Iftach Hyams E.S.L. Haifa 972 - 4 - 831 5605 [EMAIL PROTECTED] This e-mail message has been sent by Elbit Systems Ltd. and is for the use of the intended recipients only. The message may contain information that is privileged or confidential. If you are not the intended recipient you are hereby notified that any use, distribution or copying of this communication is strictly prohibited, and you are requested to delete the e-mail and any attachments and notify the sender immediately. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]