예제 #1
0
 public void DisconnectNow(uint data)
 {
     NativeMethods.EnetPeerDisconnectNow(this.peerPtr, data);
     // EnetPeerDisconnect会reset Peer,这里设置为0,防止再次Dispose
     this.PeerPtr = IntPtr.Zero;
 }