Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualsavail

Posted 30 June 2013 - 04:02 AM

hmm, recently I thought that maybe the value returned by ENetPeer::roundTripTime divided by 8 will be the genuine RTT? It would match the RTT measured by myself. Maybe it's senseless tongue.png but when creating a host in the tutorial:

client = enet_host_create (NULL /* create a client host */,
    MAX_PLAYERS_IN_ROOM /* only allow MAX_PLAYERS_IN_ROOM outgoing connections */,
    2 /* allow up 2 channels to be used, 0 and 1 */,
    57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
    14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);

the outgoing and incoming bandwidth are specified and divided by 8 too tongue.png. I don't understand why they need to be divided by 8, but maybe it's same with ENetPeer::roundTripTime...


#1savail

Posted 30 June 2013 - 04:02 AM

hmm, recently I thought that maybe the value returned by ENetPeer::roundTripTime divided by 8 will be the genuine RTT? It would match the RTT measure by myself. Maybe it's senseless :P but when creating a host in the tutorial:

client = enet_host_create (NULL /* create a client host */,
    MAX_PLAYERS_IN_ROOM /* only allow MAX_PLAYERS_IN_ROOM outgoing connections */,
    2 /* allow up 2 channels to be used, 0 and 1 */,
    57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
    14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);

the outgoing and incoming bandwidth are specified and divided by 8 too :P. I don't understand why they need to be divided by 8, but maybe it's same with ENetPeer::roundTripTime...


PARTNERS