public void Connect(string ip, int port, string serverName) { m_SendQueue = m_SendQueue ?? new MessageQueue(); m_ReciveQueue = m_ReciveQueue ?? new MessageQueue(); m_Processor = m_Processor ?? new NetProcessor(); m_Processor.Connect(ip, (ushort)port, serverName); }
public InLoadingMessageCache(NetProcessor processor) { mInLoadingCacheMsgs = new List <Message>(); mProcessor = processor; }