示例#1
0
 public TcpTransport(ActorSystem system, DotNettySettings settings)
 {
     this.System                     = system;
     this.Settings                   = settings;
     this.log                        = Logging.GetLogger(System, GetType());
     this.serverEventLoopGroup       = new MultithreadEventLoopGroup(this.Settings.ServerSocketWorkerPoolSize);
     this.clientEventLoopGroup       = new MultithreadEventLoopGroup(this.Settings.ClientSocketWorkerPoolSize);
     this.connectionGroup            = new ConcurrentSet <IChannel>();
     this.associationListenerPromise = new TaskCompletionSource <IAssociationEventListener>();
 }
示例#2
0
 public TcpTransport(ActorSystem system, Config config) : this(system, DotNettySettings.Create(config))
 {
 }
示例#3
0
 public TcpTransport(ActorSystem system) : this(system, DotNettySettings.Create(system))
 {
 }