Beispiel #1
0
    // -- Server to Client --
    public void SendAuthRsp(uint clientId)
    {
        Show("客户端认证通过:" + clientId);

        Msg.G2C.AuthRsp msg = new Msg.G2C.AuthRsp();
        msg.UserId = clientId;
        ClientNetter client = m_Netter.GetClient(clientId);

        client.Send <Msg.G2C.AuthRsp>(((int)Msg.G2C.CMD.AuthRsp), msg);
    }
Beispiel #2
0
    // -- Server to Client --

    /// <summary>
    /// 接收登录认证
    /// </summary>
    private void ReceiverAuth(IMessage message)
    {
        Msg.G2C.AuthRsp msg = message as Msg.G2C.AuthRsp;
        m_Netter.Id = msg.UserId;
        Show(string.Format("接收:客户端{0}认证通过", msg.UserId));
    }