void socketServer_OnSocketError(object sender, SocketErrorEventArgs e)
 {
     if (sender is AsyncSocketConnection)
     {
         var conn = sender as AsyncSocketConnection;
         log.ErrorFormat("通信错误:  tid:{0}, {1}, {2}", conn.TerminalId, e.Error.Message, e.Error.StackTrace);
     }
     else
     {
         SocketError se = (SocketError)e.ErrorCode;
         log.ErrorFormat("通信错误", se.GetDescription() + "," + e.Error.Message);
     }
 }