public static NetworkServiceImpl Build(EngineServiceInternal engineServiceInternal, Protocol protocol, ComponentAndEventRegistrator componentAndEventRegistrator, SharedEntityRegistry entityRegistry, CommandsCodec commandsCodec) { NetworkServiceImpl networkService = new NetworkServiceImpl(new ProtocolAdapterImpl(protocol, commandsCodec), new TcpSocketImpl()); CommandsSender sender1 = new CommandsSender(engineServiceInternal, networkService, componentAndEventRegistrator, entityRegistry); return(networkService); }
public ProtocolAdapterImpl(Protocol protocol, CommandsCodec commandsCodec) { this.protocol = protocol; this.commandsCodec = commandsCodec; this.partialReceivedData = ClientProtocolInstancesCache.GetMemoryStreamDataInstance(); }