C# Class ServerNetworkConnections.TCPServerConnector

Class that encapsulates the workings of a TcpListener
Afficher le fichier Open project: bakacaptain/istalkapp Class Usage Examples

Méthodes publiques

Méthode Description
Start ( ) : void

Method to make the listener start listening

Stop ( ) : void

Method to make the listening stop listening

TCPServerConnector ( UInt16 port, AbstractMessageParser parser ) : System

Constructor for TCPServerConnector

waitForConnection ( ) : TCPConnection

A blocking method that listens for an incoming TCP connection and returns it.

Method Details

Start() public méthode

Method to make the listener start listening
public Start ( ) : void
Résultat void

Stop() public méthode

Method to make the listening stop listening
public Stop ( ) : void
Résultat void

TCPServerConnector() public méthode

Constructor for TCPServerConnector
public TCPServerConnector ( UInt16 port, AbstractMessageParser parser ) : System
port System.UInt16 A UInt16 with the port.
parser AbstractMessageParser
Résultat System

waitForConnection() public méthode

A blocking method that listens for an incoming TCP connection and returns it.
public waitForConnection ( ) : TCPConnection
Résultat TCPConnection