Note that there are some explanatory texts on larger screens.

plurals
  1. POHuge delay in network communication
    primarykey
    data
    text
    <p>I ame writing a wcf like application, a client sends some data to a server with an id and some packet handeling data, and the server sends a message back with the same id, i ame testing the client and server on thesame computer, i ame not using localhost to connect the server and client together but the real ip address so it wil actualy open a socket instead of a loopback(this is wat i have heared). now i get amazing response times , 500(.05ms)-1000(.1ms) ticks for a : <code>client-&gt; server-&gt; client</code> communication, now i want to try it from computer to computer, so i run the client on one and the server on the other, but now the time to communicate increases ALOT, i now get times from 250000(25ms) to 350000(35ms) ticks, why does this happen? i tried using the debugger to find any delays, but i realy only get alot of delay in the socket communication</p> <p>this is the initalisation of the server socket:</p> <pre><code>IPEndPoint localEndPoint = new IPEndPoint(IPAddress.Parse(LocalIpAddress), port); Listener = new Socket(localEndPoint.Address.AddressFamily, SocketType.Stream, ProtocolType.Tcp); Listener.Bind(localEndPoint); Listener.LingerState = new LingerOption(false, 0); Listener.Listen(0); </code></pre> <p>this is the initialisation of the client socket:</p> <pre><code>ClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); ClientSocket.ReceiveBufferSize = buffer.Length; ClientSocket.LingerState = new LingerOption(false, 0); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload