Beispiel #1
0
        private void ConnectRealm()
        {
            m_connection = new McpClient(m_ip.ToString(), m_port);
            if (!m_connection.Connect())
            {
                // TODO: Raise an error event.
            }
            else
            {
                McpPacket pck = new McpPacket((byte)McpPacketId.Startup);
                pck.InsertInt32(m_mcpCookie);
                pck.InsertInt32(m_mcpStatus);
                pck.InsertByteArray(m_mcpChunk1);
                pck.InsertByteArray(m_mcpChunk2);
                pck.InsertCString(m_uniqueBnetName);

                Send(pck);
            }
        }
Beispiel #2
0
        private void ConnectRealm()
        {
            m_connection = new McpClient(m_ip.ToString(), m_port);
            if (!m_connection.Connect())
            {
                // TODO: Raise an error event.
            }
            else
            {
                McpPacket pck = new McpPacket((byte)McpPacketId.Startup);
                pck.InsertInt32(m_mcpCookie);
                pck.InsertInt32(m_mcpStatus);
                pck.InsertByteArray(m_mcpChunk1);
                pck.InsertByteArray(m_mcpChunk2);
                pck.InsertCString(m_uniqueBnetName);

                Send(pck);
            }
        }