Bytes lost during stream conversion

From: Date: Thu, 31 Jul 2008 11:32:28 +0000
Subject: Bytes lost during stream conversion
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-8287@lists.php.net to get a copy of this message
Hi. I am trying to make a server/client finance-application with the use of PHP-GTK and especially the Gtk::io_add_watch()-functionallity. However sometimes I get an error saying that some bytes were lost during stream convertions, when I close down the watch to read from the socket manually? I figured that these bytes which were lost must have been in some kind of buffer, and when I remove the watch, then this buffer is removed? Is it possible to retreive these bytes before removing the watch itself? Like some kind of "get_buffered_bytes()"-function? Or can anyone point me in the direction of how to properly handle socket-connections in PHP-GTK, so I dont run into the "lost bytes"-problem? -- Regards Kasper Johansen

« previous php.gtk.general (#8287) next »