C# 클래스 ModServer.TCPserver

Override this class and implement the abstract methods to set up a TCP server with custom protocol matchers and handlers.
파일 보기 프로젝트 열기: tyandjel94/RowanParkingPassApp

공개 프로퍼티들

프로퍼티 타입 설명
HTTP System.Text.RegularExpressions.Regex
STR_HTTP String
TCP_CHUNK_SIZE int

공개 메소드들

메소드 설명
Disconnect ( TcpClient client ) : void
DisconnectAll ( string ip ) : void
TCPserver ( int port ) : System
getLocalIP ( ) : IPAddress
kill ( ) : void
start ( ) : void

보호된 메소드들

메소드 설명
DisconnectAll ( ) : void
HandleClientComm ( TcpClient client, IProtocolMatcher protocols ) : void
ListenForClients ( ) : void
generateProtocolEngines ( TcpClient client ) : IProtocolMatcher[]
proccessUnknownProtocol ( ) : void

Add some functionality and arguments

비공개 메소드들

메소드 설명
LocalIPAddress ( ) : IPAddress

메소드 상세

Disconnect() 공개 메소드

public Disconnect ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
리턴 void

DisconnectAll() 보호된 메소드

protected DisconnectAll ( ) : void
리턴 void

DisconnectAll() 공개 메소드

public DisconnectAll ( string ip ) : void
ip string
리턴 void

HandleClientComm() 보호된 메소드

protected HandleClientComm ( TcpClient client, IProtocolMatcher protocols ) : void
client System.Net.Sockets.TcpClient
protocols IProtocolMatcher
리턴 void

ListenForClients() 보호된 메소드

protected ListenForClients ( ) : void
리턴 void

TCPserver() 공개 메소드

public TCPserver ( int port ) : System
port int
리턴 System

generateProtocolEngines() 보호된 추상적인 메소드

protected abstract generateProtocolEngines ( TcpClient client ) : IProtocolMatcher[]
client System.Net.Sockets.TcpClient
리턴 IProtocolMatcher[]

getLocalIP() 공개 정적인 메소드

public static getLocalIP ( ) : IPAddress
리턴 System.Net.IPAddress

kill() 공개 메소드

public kill ( ) : void
리턴 void

proccessUnknownProtocol() 보호된 메소드

Add some functionality and arguments
protected proccessUnknownProtocol ( ) : void
리턴 void

start() 공개 메소드

public start ( ) : void
리턴 void

프로퍼티 상세

HTTP 공개적으로 정적으로 프로퍼티

public static Regex,System.Text.RegularExpressions HTTP
리턴 System.Text.RegularExpressions.Regex

STR_HTTP 공개적으로 정적으로 프로퍼티

public static String STR_HTTP
리턴 String

TCP_CHUNK_SIZE 공개적으로 프로퍼티

public int TCP_CHUNK_SIZE
리턴 int