C# Class OpenNos.Core.Networking.Communication.Scs.Communication.Channels.Tcp.TcpConnectionListener

This class is used to listen and accept incoming TCP connection requests on a TCP port.
Inheritance: ConnectionListenerBase
ファイルを表示 Open project: OpenNos/OpenNos

Public Methods

Method Description
Start ( ) : void

Starts listening incoming connections.

Stop ( ) : void

Stops listening incoming connections.

TcpConnectionListener ( ScsTcpEndPoint endPoint ) : System.Net.Sockets

Creates a new TcpConnectionListener for given endpoint.

Private Methods

Method Description
DoListenAsThread ( ) : void

Entrance point of the thread. This method is used by the thread to listen incoming requests.

StartSocket ( ) : void

Starts listening socket.

StopSocket ( ) : void

Stops listening socket.

Method Details

Start() public method

Starts listening incoming connections.
public Start ( ) : void
return void

Stop() public method

Stops listening incoming connections.
public Stop ( ) : void
return void

TcpConnectionListener() public method

Creates a new TcpConnectionListener for given endpoint.
public TcpConnectionListener ( ScsTcpEndPoint endPoint ) : System.Net.Sockets
endPoint OpenNos.Core.Networking.Communication.Scs.Communication.EndPoints.Tcp.ScsTcpEndPoint The endpoint address of the server to listen incoming connections
return System.Net.Sockets