| 34 | VARF(throttle_decel, 0, 2, 32, throttle()); |
| 35 | |
| 36 | void throttle() |
| 37 | { |
| 38 | if(!curpeer) return; |
| 39 | ASSERT(ENET_PEER_PACKET_THROTTLE_SCALE==32); |
| 40 | enet_peer_throttle_configure(curpeer, throttle_interval*1000, throttle_accel, throttle_decel); |
| 41 | } |
| 42 | |
| 43 | string clientpassword = ""; |
| 44 | int connectrole = CR_DEFAULT; |
no test coverage detected