bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

binary data transmit with TCPStream


From: Wakan
Subject: binary data transmit with TCPStream
Date: Mon, 19 Feb 2007 13:16:42 +0100
User-agent: Mozilla Thunderbird 1.5.0.9 (Windows/20061207)

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?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]