Listener

Overview

The Listener class is used internally by the Server component. For each port binding, one or more Listener instances are created. Each runs in a separate thread and listens for incoming connections. As soon as a connection is accepted, a Worker thread is created to handle this data connection, and then Listener thread goes back to listening for new connections.

Location


Properties


ListeningSocket

 

property ListeningSocket: Socket read write;

 

Socket ListeningSocket { get; set; }

 

Property ListeningSocket() As Socket

Owner

 

property Owner: Server read write;

 

Server Owner { get; set; }

 

Property Owner() As Server

Instance Methods


constructor

 

constructor(owner: Server; workerFactory: Func<Server, Object>)

 

Listener(Server owner, Func<Server, Object> workerFactory)

 

Sub New(owner As Server, workerFactory As Func (Of Server, Object))

Parameters:

  • owner:
  • workerFactory:

Listen

 

method Listen

 

void Listen()

 

Sub Listen()