Example #1
0
        public void DoClientRegister()
        {
            BidderRegisterRequest req = new BidderRegisterRequest();

            req.MachineCode    = GetMachineCode();
            req.ClientVersion  = Ver.ver;
            req.LocalIpAddress = KK.GetLocalIP();
            req.SeatNo         = GetClientSeatNo();


            JsonCommand comm = JsonCommands.OK(CommandDirective.CLIENT_REGISTER, req);

            RawMessage msg = MessageUtils.BuildJsonMessage(_clientNo, comm);


            socketClient.Send(msg);

            logger.InfoFormat("send DoClientRegister tcp request...");
        }