Esempio n. 1
0
 void client_ServerEvent(System.Net.Sockets.SocketError obj)
 {
     if (obj == System.Net.Sockets.SocketError.ConnectionReset ||
         obj == System.Net.Sockets.SocketError.OperationAborted
         )
     {
         this.ConnectStatus = NSocketRebotConnectStatus.NotConnected;
     }
     else
     {
         Console.WriteLine(obj.ToString());
     }
 }
Esempio n. 2
0
 private void Listener_NetworkErrorEvent(System.Net.IPEndPoint endPoint, System.Net.Sockets.SocketError socketError)
 {
     Debug.LogError(socketError.ToString());
 }
Esempio n. 3
0
 static void nc_OnConncetEnd(System.Net.Sockets.SocketError obj)
 {
     Console.WriteLine("连接结果:" + obj.ToString());
     m_WaitObj.Set();
 }
Esempio n. 4
0
 protected override void OnError(System.Net.Sockets.SocketError error)
 {
     Debug.Log(error.ToString());
 }
Esempio n. 5
0
 private void Client_Error(System.Net.Sockets.SocketError error)
 {
     this.Log("Error:" + error.ToString());
 }
 protected override void OnError(System.Net.Sockets.SocketError error)
 {
     base.OnError(error);
     Console.WriteLine(error.ToString());
 }