예제 #1
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode1(m_typeCode);
     ossStream.EncodeStringToAnsi(m_userID);
     ossStream.EncodeStringToAnsi(m_pwd);
     ossStream.EncodeStringToUnicode(m_nickname);
 }
예제 #2
0
파일: HelloPacket.cs 프로젝트: pb0/ID0_Test
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode2(m_ver1);
     ossStream.Encode2(m_ver2);
     ossStream.Encode1(m_clientProductVer);
     ossStream.Encode1(m_configVer);
 }
예제 #3
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode2(SendTransNum);
     ossStream.Encode1(m_typeCode);
     ossStream.EncodeStringToAnsi(m_userID);
     ossStream.EncodeStringToAnsi(m_pwd);
 }
예제 #4
0
파일: LoginPacket.cs 프로젝트: pb0/ID0_Test
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode1(m_typeCode);
     ossStream.EncodeStringToAnsi(m_userID);
     ossStream.EncodeStringToAnsi(m_userPwd);
     ossStream.Encode1(m_localeCode);
     ossStream.Encode1(m_isAlreadyLogined);
     ossStream.Encode2(m_recvTransNum);
 }
예제 #5
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode2(SendTransNum);
     ossStream.Encode1(m_actionId);
     ossStream.Encode4(m_param1);
     ossStream.Encode4(m_param2);
     ossStream.Encode4(m_param3);
     ossStream.Encode4(m_param4);
 }
예제 #6
0
파일: SmartPacket.cs 프로젝트: pb0/ID0_Test
        public void PrepareSendBuffer()
        {
            OSmartStream stream = new OSmartStream();

            DoEncoding(stream);
            stream.CompressBuffer(m_bCRCCheck, m_bEncrypt, 0);

            m_dataSize = stream.m_compBuf.Size;
            Array.Copy(stream.m_compBuf.Buffer, 0, m_encodedBuf.Buffer, 4, m_dataSize);

            m_encodedBuf.Buffer[0] = (byte)((m_dataSize & 0x0000FF00) >> 8);
            m_encodedBuf.Buffer[1] = (byte)((m_dataSize & 0x000000FF) >> 0);
            m_encodedBuf.Buffer[2] = (byte)((m_code & 0x0000FF00) >> 8);
            m_encodedBuf.Buffer[3] = (byte)((m_code & 0x000000FF) >> 0);

            m_dataSize += 4;
            m_encodedBuf.Size = m_dataSize;

            stream.Dispose();
        }
예제 #7
0
파일: SyncPacket.cs 프로젝트: pb0/ID0_Test
 public override void DoEncoding(OSmartStream stream)
 {
 }
예제 #8
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode1(m_type);
 }
예제 #9
0
파일: SmartPacket.cs 프로젝트: pb0/ID0_Test
 public virtual void DoEncoding(OSmartStream ossStream)
 {
     // No implementation.
 }
예제 #10
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.Encode2(SendTransNum);
 }
예제 #11
0
 public override void DoEncoding(OSmartStream ossStream)
 {
     ossStream.EncodeStringToUnicode(m_nickname);
 }