C# Класс 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.
Наследование: ConnectionListenerBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Start() публичный Метод

Starts listening incoming connections.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops listening incoming connections.
public Stop ( ) : void
Результат void

TcpConnectionListener() публичный Метод

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
Результат System.Net.Sockets