in reply to Re: sysread and syswrite in tcp sockets
in thread sysread and syswrite in tcp sockets
Updated Client program: create_socket #function to establish connection with server print $sock, <username>; sleep(1); #to allow a pause so that username and pwd are 2 streams print $sock <pwd>; while($len = sysread($sock, $buffer, 500000000)) { createFile("<filename>", $buffer, $len, 0); #processFile; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: sysread and syswrite in tcp sockets
by gone2015 (Deacon) on Dec 22, 2008 at 19:24 UTC |