hello,
i am working on a LAN with a low traffic rate and i wish to be able to send large amounts of data almost constantly over a tcp/ip connection (between 200k and 800k per second), but only in one direction.
i have writen a basic program (well two) to do this, but i have a problem.
each time data is ready to be sent the "client" program sends the amount of bytes that are to be sent then loops round that many times send 1000 bytes x amount of times (so for 200k, 200 loops) while the "host" loops x amount of time receiving the data. after all the data is read in the "host" sends back an "ok to send" message when the "client" receives this the process starts again.
this works ok, but when left for a time the sending or receiving slows down and each send or receive takes seconds to complete, with the inclusion of a delay (of up to 750 ms) the program runs without fault.
what is wrong with the method of data transfer? what causes the slowing down? is there a better way of doing this?
thanks (for just reading that), BigDaz.
i am working on a LAN with a low traffic rate and i wish to be able to send large amounts of data almost constantly over a tcp/ip connection (between 200k and 800k per second), but only in one direction.
i have writen a basic program (well two) to do this, but i have a problem.
each time data is ready to be sent the "client" program sends the amount of bytes that are to be sent then loops round that many times send 1000 bytes x amount of times (so for 200k, 200 loops) while the "host" loops x amount of time receiving the data. after all the data is read in the "host" sends back an "ok to send" message when the "client" receives this the process starts again.
this works ok, but when left for a time the sending or receiving slows down and each send or receive takes seconds to complete, with the inclusion of a delay (of up to 750 ms) the program runs without fault.
what is wrong with the method of data transfer? what causes the slowing down? is there a better way of doing this?
thanks (for just reading that), BigDaz.