C# 클래스 ServerNetworkConnections.TCPServerConnector

Class that encapsulates the workings of a TcpListener
파일 보기 프로젝트 열기: bakacaptain/istalkapp 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Start() 공개 메소드

Method to make the listener start listening
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Method to make the listening stop listening
public Stop ( ) : void
리턴 void

TCPServerConnector() 공개 메소드

Constructor for TCPServerConnector
public TCPServerConnector ( UInt16 port, AbstractMessageParser parser ) : System
port System.UInt16 A UInt16 with the port.
parser AbstractMessageParser
리턴 System

waitForConnection() 공개 메소드

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