Wakan schrieb:
> 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.

...

> In which way can I resolve that problem? How can I transmit in secure
> way binary data
> over the socket connection?

Hi Wakan,

I don't know how things are now with the newest release, but as of
1.0.5, TCPStream was made for sending text, not binary data.

This was the reason why I implemented my own BinaryTCPStream on the
client side and a binary streaming server (BinaryServer derived from
TCPSocket and BinaryPort derived from SocketPort) - which might not be
portable as I used it solely on windows. And things got more difficult
on the server because I needed a responsive server even one request was
currently being processed.

There sould be an example in the library how to implement your own
SocketPort as far as I can remember.



--
Klaus Triendl


_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

Reply via email to