Esempio n. 1
0
 public void Ping()
 {
     NativeMethods.EnetPeerPing(this.peerPtr);
 }
Esempio n. 2
0
 public void ConfigureThrottle(uint interval, uint acceleration, uint deceleration)
 {
     NativeMethods.EnetPeerThrottleConfigure(this.peerPtr, interval, acceleration, deceleration);
 }
Esempio n. 3
0
 public void DisconnectNow(uint data)
 {
     NativeMethods.EnetPeerDisconnectNow(this.peerPtr, data);
     // EnetPeerDisconnect会reset Peer,这里设置为0,防止再次Dispose
     this.PeerPtr = IntPtr.Zero;
 }