LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Kasper Johansen Date: Thu Jul 31 05:32:28 2008 Subject: Bytes lost during stream conversion
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
| Navigate in group php.gtk.general at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |