Ejemplo n.º 1
0
 public void IDSocketDisconnect(object sender, DSCClientConnectedEventArgs e)
 {
     if (M2Share.g_Config.boIDSocketConnected)
     {
         ClearSession();
         M2Share.g_Config.boIDSocketConnected = false;
         M2Share.MainOutMessage("登录服务器[" + IDSocket.Address + ":" + IDSocket.Port + "]断开连接...");
     }
 }
Ejemplo n.º 2
0
        public void SocketServer_SessionDisconnected(object sender, DSCClientConnectedEventArgs e)
        {
            TServerMsgInfo ServerMsgInfo;

            for (int I = SrvArray.GetLowerBound(0); I <= SrvArray.GetUpperBound(0); I++)
            {
                ServerMsgInfo = SrvArray[I];
                if (ServerMsgInfo.Socket == e.socket)
                {
                    ServerMsgInfo.Socket = null;
                    ServerMsgInfo.s2E0   = "";
                }
            }
        }
Ejemplo n.º 3
0
 void HandleM_ClientOnConnected(object sender, DSCClientConnectedEventArgs e)
 {
     Debug.LogWarning("::OnConnected");
     if (Connected)
     {
         if (m_ConnectSuccessCallBack != null)
         {
             m_ConnectSuccessCallBack();
             m_ConnectSuccessCallBack = null;
         }
     }
     else
     {
         m_bWarnLostConnect = true;
     }
 }
Ejemplo n.º 4
0
        public void SocketServer_SessionConnected(object sender, DSCClientConnectedEventArgs e)
        {
            TServerMsgInfo ServerMsgInfo;

            for (int I = SrvArray.GetLowerBound(0); I <= SrvArray.GetUpperBound(0); I++)
            {
                ServerMsgInfo = SrvArray[I];
                if (ServerMsgInfo.Socket == null)
                {
                    ServerMsgInfo.Socket = e.socket;
                    ServerMsgInfo.s2E0   = "";

                    //e.SessionBaseInfo.ID = I;
                    //Socket.nIndex = I;
                }
            }
        }
Ejemplo n.º 5
0
    void connectedHandler(object sender, DSCClientConnectedEventArgs e)
    {
        Debug.LogWarning("::OnConnected");

        if (connected)
        {
            if (m_connectSuccessCallBack != null)
            {
                m_connectSuccessCallBack();
                m_connectSuccessCallBack = null;
            }
        }
        else
        {
            m_lostConnection = true;
        }
    }
Ejemplo n.º 6
0
 void HandleM_ClientOnDisconnected(object sender, DSCClientConnectedEventArgs e)
 {
     Debug.LogWarning("::OnDisconnected");
 }
Ejemplo n.º 7
0
 void HandleM_ClientOnConnected(object sender, DSCClientConnectedEventArgs e)
 {
     Debug.LogWarning("::OnConnected");
     if (Connected)
     {
         if (m_ConnectSuccessCallBack != null)
         {
             m_ConnectSuccessCallBack();
             m_ConnectSuccessCallBack = null;
         }
     }
     else
     {
         m_bWarnLostConnect = true;
     }
 }
Ejemplo n.º 8
0
 public void IDSocketConnect(object sender, DSCClientConnectedEventArgs e)
 {
     M2Share.g_Config.boIDSocketConnected = true;
     M2Share.MainOutMessage("登录服务器[" + IDSocket.Address + ":" + IDSocket.Port + "]连接成功...");
 }
Ejemplo n.º 9
0
 public void MsgServerClientError(object sender, DSCClientConnectedEventArgs e)
 {
     e.socket.Close();
 }
Ejemplo n.º 10
0
 void disconnectedHandler(object sender, DSCClientConnectedEventArgs e)
 {
     Debug.LogWarning("::OnDisconnected");
 }
Ejemplo n.º 11
0
 public void MsgClientConnect(object sender, DSCClientConnectedEventArgs e)
 {
     sRecvMsg = "";
 }
Ejemplo n.º 12
0
 void HandleOnConnected(object sender, DSCClientConnectedEventArgs e)
 {
     m_Enable = m_Client.Connected;
     GameRoot.NotifyNetConnected(m_Enable);
     Debug.Log("Connect to Server : " + m_Enable);
 }
Ejemplo n.º 13
0
 void HandleOnDisconnected(object sender, DSCClientConnectedEventArgs e)
 {
 }