示例#1
0
 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);
 }
示例#2
0
 public InLoadingMessageCache(NetProcessor processor)
 {
     mInLoadingCacheMsgs = new List <Message>();
     mProcessor          = processor;
 }