Re: Avoiding string break...
- From: Robert Pearce <rob bdt-home demon co uk>
- To: gtkmm-list gnome org
- Subject: Re: Avoiding string break...
- Date: Tue, 4 May 2010 07:50:36 +0100
On Mon, 3 May 2010 22:48:18 +0000 (GMT) Piscium wrote:
> Also I am not sure about this:
> size = mysocket->send (send_data.c_str(), size);
I think, actually, that there is another problem with that, and it
should be:
size = mysocket->send (send_data.c_str(), to_send);
otherwise your total size sent is wrong. For that matter, it's going to
send the start of the string several times, so you need another record
of where you'd got to. But those bugs will only show up if Gio fails to
send the whole thing in one go. Try Piscium's change for the original
problem.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]