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 void Release(NetworkPoolQueue queue)
 {
 }
Exemplo n.º 4
0
 public void Block(NetworkPoolQueue queue)
 {
 }
Exemplo n.º 5
0
 public bool CanExecute(NetworkPoolQueue queue)
 {
     return(true);
 }
Exemplo n.º 6
0
 public void Release(NetworkPoolQueue queue)
 {
     queue.Release(identifier);
 }
Exemplo n.º 7
0
 public void Block(NetworkPoolQueue queue)
 {
     queue.Block(identifier);
 }
Exemplo n.º 8
0
 public bool CanExecute(NetworkPoolQueue queue)
 {
     return(queue.IsBlocked(identifier) == false &&
            buffer.IsAvailable(message.Length));
 }