private IEnumerator ConnectServer(string typeName) { yield return(null); BaseProtocolChannel channel = protocols[typeName]; channel.Connect(ipe); }
public void SendMessage(string typeName, INetworkMessage message) { BaseProtocolChannel channel = protocols[typeName]; if (channel != null) { channel.Send(message); } }
public void DisConnectServer(string typeName) { BaseProtocolChannel channel = protocols[typeName]; if (channel != null) { channel.DisConnect(); } }
public void ReceiveMessage(BaseProtocolChannel channel, INetworkMessage message) { messageQueue.Enqueue(message); }