Example #1
0
    private void SendLogin(MsgBase msg)
    {
        LoginMsg tmpMsg = (LoginMsg)msg;

        peer.SendOperation((byte)OpCodeEnum.Login, new Dictionary <byte, object> {
            { (byte)OpKeyEnum.UserName, tmpMsg.username }, { (byte)OpKeyEnum.PassWord, tmpMsg.password }
        }, new SendOptions());
    }