I'm sending binary data over a socket connection using TCPStream.
I'm using:
tcp.write(row[3],tpl_size);
tcp << endl;
where row[3] contains binary data.
I know that if I remove the tcp << endl; no data are sent (no data result
available on the other socket end).
The problem is that I'm transmitting binary data, and the \n character
may be present
in the data packet I'm sending to the other and, that will in this way
analyze an incomplete
data pack.
In which way can I resolve that problem? How can I transmit in secure
way binary data
over the socket connection?
_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp