bug-commoncpp
[Top][All Lists]
Advanced

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

Re: binary data transmit with TCPStream


From: Klaus Triendl
Subject: Re: binary data transmit with TCPStream
Date: Tue, 27 Feb 2007 14:08:17 +0100
User-agent: Thunderbird 1.5.0.9 (Windows/20061207)

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




reply via email to

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