* Added 100 mode text downloads
* Print server hello banner
$Log$
+ Revision 1.2 2003/10/31 05:03:46 ajc
+ * Stabilized the session proxy
+ * Added 100 mode text downloads
+ * Print server hello banner
+
Revision 1.1 2003/10/31 03:47:13 ajc
* Initial CVS import
-
if (substr($talkback, 0, 1) == "1") do {
$buf = fgets($ctdlsock, 4096);
- socket_write($msgsock, $buf, strlen($buf));
+ if (!$buf) {
+ $buf = "000\n" ;
+ }
+ else {
+ socket_write($msgsock, $buf,
+ strlen($buf));
+ }
} while ($buf != "000\n");
}