C# Class PSXDH.ProxyHelp.Listener

Inheritance: IDisposable
ファイルを表示 Open project: KOPElan/PSX-Download-Helper

Public Methods

Method Description
AddClient ( Client client ) : void
Dispose ( ) : void
GetClientAt ( int index ) : Client
GetClientCount ( ) : int
GetLocalExternalIp ( ) : IPAddress
GetLocalInternalIp ( ) : IPAddress
IsLocalIp ( IPAddress ip ) : bool
IsRemoteIp ( IPAddress ip ) : bool
OnAccept ( IAsyncResult ar ) : void
RemoveClient ( Client client ) : void
Restart ( ) : void
Start ( ) : void
ToString ( ) : string

Protected Methods

Method Description
Listener ( int port, IPAddress address ) : System

Method Details

AddClient() public method

public AddClient ( Client client ) : void
client Client
return void

Dispose() public method

public Dispose ( ) : void
return void

GetClientAt() public method

public GetClientAt ( int index ) : Client
index int
return Client

GetClientCount() public method

public GetClientCount ( ) : int
return int

GetLocalExternalIp() public static method

public static GetLocalExternalIp ( ) : IPAddress
return System.Net.IPAddress

GetLocalInternalIp() public static method

public static GetLocalInternalIp ( ) : IPAddress
return System.Net.IPAddress

IsLocalIp() public static method

public static IsLocalIp ( IPAddress ip ) : bool
ip System.Net.IPAddress
return bool

IsRemoteIp() public static method

public static IsRemoteIp ( IPAddress ip ) : bool
ip System.Net.IPAddress
return bool

Listener() protected method

protected Listener ( int port, IPAddress address ) : System
port int
address System.Net.IPAddress
return System

OnAccept() public abstract method

public abstract OnAccept ( IAsyncResult ar ) : void
ar IAsyncResult
return void

RemoveClient() public method

public RemoveClient ( Client client ) : void
client Client
return void

Restart() public method

public Restart ( ) : void
return void

Start() public method

public Start ( ) : void
return void

ToString() public abstract method

public abstract ToString ( ) : string
return string