C# Class ModServer.TCPserver

Override this class and implement the abstract methods to set up a TCP server with custom protocol matchers and handlers.
Afficher le fichier Open project: tyandjel94/RowanParkingPassApp

Méthodes publiques

Свойство Type Description
HTTP System.Text.RegularExpressions.Regex
STR_HTTP String
TCP_CHUNK_SIZE int

Méthodes publiques

Méthode Description
Disconnect ( TcpClient client ) : void
DisconnectAll ( string ip ) : void
TCPserver ( int port ) : System
getLocalIP ( ) : IPAddress
kill ( ) : void
start ( ) : void

Méthodes protégées

Méthode Description
DisconnectAll ( ) : void
HandleClientComm ( TcpClient client, IProtocolMatcher protocols ) : void
ListenForClients ( ) : void
generateProtocolEngines ( TcpClient client ) : IProtocolMatcher[]
proccessUnknownProtocol ( ) : void

Add some functionality and arguments

Private Methods

Méthode Description
LocalIPAddress ( ) : IPAddress

Method Details

Disconnect() public méthode

public Disconnect ( TcpClient client ) : void
client System.Net.Sockets.TcpClient
Résultat void

DisconnectAll() protected méthode

protected DisconnectAll ( ) : void
Résultat void

DisconnectAll() public méthode

public DisconnectAll ( string ip ) : void
ip string
Résultat void

HandleClientComm() protected méthode

protected HandleClientComm ( TcpClient client, IProtocolMatcher protocols ) : void
client System.Net.Sockets.TcpClient
protocols IProtocolMatcher
Résultat void

ListenForClients() protected méthode

protected ListenForClients ( ) : void
Résultat void

TCPserver() public méthode

public TCPserver ( int port ) : System
port int
Résultat System

generateProtocolEngines() protected abstract méthode

protected abstract generateProtocolEngines ( TcpClient client ) : IProtocolMatcher[]
client System.Net.Sockets.TcpClient
Résultat IProtocolMatcher[]

getLocalIP() public static méthode

public static getLocalIP ( ) : IPAddress
Résultat System.Net.IPAddress

kill() public méthode

public kill ( ) : void
Résultat void

proccessUnknownProtocol() protected méthode

Add some functionality and arguments
protected proccessUnknownProtocol ( ) : void
Résultat void

start() public méthode

public start ( ) : void
Résultat void

Property Details

HTTP public_oe static_oe property

public static Regex,System.Text.RegularExpressions HTTP
Résultat System.Text.RegularExpressions.Regex

STR_HTTP public_oe static_oe property

public static String STR_HTTP
Résultat String

TCP_CHUNK_SIZE public_oe property

public int TCP_CHUNK_SIZE
Résultat int