C# Class Squishy.Network.Listener

Datei anzeigen Open project: jaddie/WCell-Utility-Bot

Public Properties

Property Type Description
BindAddress System.Net.IPAddress

Public Methods

Method Description
BeginListen ( int port ) : void

Starts listening on the given port.

Close ( ) : void

Shuts this Listener down - if still listening.

Private Methods

Method Description
AcceptNotify ( Connection client ) : void
CloseNotify ( ) : void
ListenFailedNotify ( Exception e ) : void
OnAccept ( IAsyncResult ar ) : void

Is called, once a client connected to this listener.

Method Details

BeginListen() public method

Starts listening on the given port.
public BeginListen ( int port ) : void
port int
return void

Close() public method

Shuts this Listener down - if still listening.
public Close ( ) : void
return void

Property Details

BindAddress public_oe static_oe property

Local address for the server to bind to. Usually there is no need to change this.
public static IPAddress,System.Net BindAddress
return System.Net.IPAddress