Exemple #1
0
        private void OnDBClose(Socket s)
        {
            lock (_lock)
            {
                mbConnect = false;
                mDBPacket.ClearPacket();
                Log.Instance().WriteLog("dbserver close!!!reconnect ");

                mTcpDBClient.SetSocket(null);
                mnReconnectTick = System.Environment.TickCount; //重连时间
            }
        }
Exemple #2
0
 private static void OnDBClose(Socket s)
 {
     mDBPacket.ClearPacket();
     Log.Instance().WriteLog("dbserver close!!!reconnect ");
     mTcpClient.ReConnect(); //重新连接
 }