in reply to client server file transfer
Alternativly I would do what some protocols do and use a message content length (in exact bytes) so that the reciver knows exactly how much binary data to read, after which normal operation can resume.
For this you could just add a line to the sender to like print OUT "Size: " . (-s $file) . "\n"; and the reciver can parse that line of data and use one or a series of read statements to recieve exactly that much data.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: client server file transfer
by Boots111 (Hermit) on Jun 25, 2001 at 16:58 UTC |