Exemplo n.º 1
0
    // -- 业务处理 --

    // -- Client to Server --

    /// <summary>
    /// 发送登录认证
    /// </summary>
    public void SendAuthReq()
    {
        Show("客户端请求认证");

        Msg.C2G.AuthReq pack = new Msg.C2G.AuthReq();
        m_Netter.Send <Msg.C2G.AuthReq>((int)Msg.C2G.CMD.AuthReq, pack);
    }
Exemplo n.º 2
0
    // -- 业务处理 --

    // -- Client to Server --

    private void AuthMessage(uint clientId, IMessage message)
    {
        Msg.C2G.AuthReq authReq = message as Msg.C2G.AuthReq;

        Show("客户端请求认证:" + clientId);

        SendAuthRsp(clientId);
    }