Example #1
0
        // DB 처리 결과를 내부 패킷으로 넣는다. DB 처리 스레드에서 DB 처리 후 호출한다.
        void DBResponseFunc(DB.ResponseData resultData)
        {
            var packet = new SFNETPacket();

            packet.SetData(-1, (ushort)PACKET_ID.DB_RESPONSE_LOGIN, resultData.Datas);
            ServerNet.InnerPacket(packet);
        }
Example #2
0
        ResponseData RequestLoginValue(ERROR_CODE result, RequestData dbRequest)
        {
            var reqponseData = new ResponseData()
            {
                PacketID = PACKET_ID.DB_RESPONSE_LOGIN,
                SessionID = dbRequest.SessionID,
                PacketProcessIndex = dbRequest.PacketProcessIndex,
            };

            var response = new DB.ResponseLogin() { Result = result, UserID = dbRequest.UserID };
            var serializer = MessagePackSerializer.Get<DB.ResponseLogin>();
            reqponseData.Datas = serializer.PackSingleObject(response);

            return reqponseData;
        }