I am trying to use
to send data. I have it set up that I'm sending a ping type message, then the receiver is replying with a pong type message, and then the first person upon receiving calculates the time. For the sake of argument, assume I am sending a byte[] made from a string "PING" and the response is similarly "PONG"
What i'm seeing is that the round trip is consistently taking longer than the value derived from
This leads me to believe (perhaps I'm making some wrong assumptions), that .StreamBytes doesn't send it instantly, but has some sort of buffering going on.
If that is the case, how do I send right away? (as I would if I were to create a basic UDP connection in c# and send bytes across on demand).
If this isn't the case, how is the PingNetwork call returning a smaller number? (30-40ms slower)
connection.StreamBytes(generalUnreliable, data);
to send data. I have it set up that I'm sending a ping type message, then the receiver is replying with a pong type message, and then the first person upon receiving calculates the time. For the sake of argument, assume I am sending a byte[] made from a string "PING" and the response is similarly "PONG"
What i'm seeing is that the round trip is consistently taking longer than the value derived from
BoltNetwork.server.PingNetwork
This leads me to believe (perhaps I'm making some wrong assumptions), that .StreamBytes doesn't send it instantly, but has some sort of buffering going on.
If that is the case, how do I send right away? (as I would if I were to create a basic UDP connection in c# and send bytes across on demand).
If this isn't the case, how is the PingNetwork call returning a smaller number? (30-40ms slower)