Exemplo n.º 1
0
 public NetworkPoolListener(Dictionary <long, NetworkPoolEntry> items, NetworkPoolQueue queue, NetworkPoolHooks hooks, NetworkPoolConfiguration configuration, NetworkPoolDependencies dependencies)
 {
     this.items         = items;
     this.queue         = queue;
     this.hooks         = hooks;
     this.configuration = configuration;
     this.dependencies  = dependencies;
 }
Exemplo n.º 2
0
        public NetworkPoolInstance(NetworkPoolDependencies dependencies, NetworkPoolConfiguration configuration, NetworkPoolHooks hooks)
        {
            this.hooks         = hooks;
            this.dependencies  = dependencies;
            this.configuration = configuration;

            factory = new SocketFactory(dependencies.Completion);

            items = new Dictionary <long, NetworkPoolEntry>();
            queue = new NetworkPoolQueue(this);
        }
Exemplo n.º 3
0
 public NetworkPoolBuilder()
 {
     configuration = new NetworkPoolConfiguration();
     dependencies  = new NetworkPoolDependencies();
 }