I can send 1MB, but I want to send 10, 100 or 500MB which doesnt work.
What do you mean by "it doesn't work"? There is no arbitrary limit on the amount of data you can send over a tcp connection. Could you be running into a RAM issue on your machine? Reading the whole file into an array in memory interpolating that array into a string isn't exactly memory efficient. You might want to write your client-side while loop as
print while <LOG>;
Or is there a better way way to do it?.
Probably... netcat may be just what you are looking for. You might also find iperf helpful.
Good luck.
-sauoq "My two cents aren't worth a dime.";
In reply to Re: How can I send more than 1MB to a TCP socket?
by sauoq
in thread How can I send more than 1MB to a TCP socket?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |