I am building a simulator that needs to send out 2 messages on a tcp
connection each at a rate of 1 packet / 50ms. Right now it kind of
works in that it is sending 8 (4 of each) at 200ms. Is there a way to
force the packets to at the least go out every 50 ms?
If 1 of each is combined is fine, but 4 of each at a time is a problem.
Are there any more options I can set to improve this?
Right now my socket is setup as :
serverSocket = new Socket( AddressFamily.I nterNetwork,
SocketType.Stre am, ProtocolType.Tc p);
serverSocket.Se tSocketOption(S ocketOptionLeve l.Socket,
SocketOptionNam e.SendTimeout, 1000);
Thanks.
connection each at a rate of 1 packet / 50ms. Right now it kind of
works in that it is sending 8 (4 of each) at 200ms. Is there a way to
force the packets to at the least go out every 50 ms?
If 1 of each is combined is fine, but 4 of each at a time is a problem.
Are there any more options I can set to improve this?
Right now my socket is setup as :
serverSocket = new Socket( AddressFamily.I nterNetwork,
SocketType.Stre am, ProtocolType.Tc p);
serverSocket.Se tSocketOption(S ocketOptionLeve l.Socket,
SocketOptionNam e.SendTimeout, 1000);
Thanks.
Comment