C# Class SimpleTCP.SimpleTcpServer

ファイルを表示 Open project: BrandonPotter/SimpleTCP Class Usage Examples

Public Methods

Method Description
Broadcast ( byte data ) : void
Broadcast ( string data ) : void
BroadcastLine ( string data ) : void
GetIPAddresses ( ) : IEnumerable
GetListeningIPs ( ) : List
SimpleTcpServer ( ) : System
Start ( IPAddress ipAddress, int port ) : SimpleTcpServer
Start ( int port, AddressFamily addressFamilyFilter ) : SimpleTcpServer
Start ( int port, bool ignoreNicsWithOccupiedPorts = true ) : SimpleTcpServer
Stop ( ) : void

Private Methods

Method Description
DebugInfo ( string format ) : void
NotifyClientConnected ( SimpleTCP.Server listener, TcpClient newClient ) : void
NotifyClientDisconnected ( SimpleTCP.Server listener, TcpClient disconnectedClient ) : void
NotifyDelimiterMessageRx ( SimpleTCP.Server listener, TcpClient client, byte msg ) : void
NotifyEndTransmissionRx ( SimpleTCP.Server listener, TcpClient client, byte msg ) : void
RankIpAddress ( IPAddress addr ) : int

Method Details

Broadcast() public method

public Broadcast ( byte data ) : void
data byte
return void

Broadcast() public method

public Broadcast ( string data ) : void
data string
return void

BroadcastLine() public method

public BroadcastLine ( string data ) : void
data string
return void

GetIPAddresses() public method

public GetIPAddresses ( ) : IEnumerable
return IEnumerable

GetListeningIPs() public method

public GetListeningIPs ( ) : List
return List

SimpleTcpServer() public method

public SimpleTcpServer ( ) : System
return System

Start() public method

public Start ( IPAddress ipAddress, int port ) : SimpleTcpServer
ipAddress System.Net.IPAddress
port int
return SimpleTcpServer

Start() public method

public Start ( int port, AddressFamily addressFamilyFilter ) : SimpleTcpServer
port int
addressFamilyFilter AddressFamily
return SimpleTcpServer

Start() public method

public Start ( int port, bool ignoreNicsWithOccupiedPorts = true ) : SimpleTcpServer
port int
ignoreNicsWithOccupiedPorts bool
return SimpleTcpServer

Stop() public method

public Stop ( ) : void
return void