Свойство | Type | Description | |
---|---|---|---|
Accept | void | ||
Close | void | ||
IProactorEvents | void |
Méthode | Description | |
---|---|---|
Destroy ( ) : void |
Release any contained resources (here - does nothing).
|
|
InCompleted ( SocketError socketError, int bytesTransferred ) : void |
This is called when socket input has been completed.
|
|
SetAddress ( [ addr ) : void |
Set address to listen on.
|
|
TcpListener ( [ ioThread, [ socket, [ options ) : System |
Create a new TcpListener on the given IOThread and socket.
|
|
TimerEvent ( int id ) : void |
This would be called when a timer expires, although here it only throws a NotSupportedException.
|
Méthode | Description | |
---|---|---|
ProcessPlug ( ) : void | ||
ProcessTerm ( int linger ) : void |
Process a termination request.
|
Méthode | Description | |
---|---|---|
Accept ( ) : void | ||
Close ( ) : void |
Close the listening socket.
|
|
IProactorEvents ( SocketError socketError, int bytesTransferred ) : void |
This method would be called when a message Send operation has been completed - except in this case it simply throws a NotImplementedException.
|
public InCompleted ( SocketError socketError, int bytesTransferred ) : void | ||
socketError | SocketError | This indicates the status of the input operation - whether Success or some error. |
bytesTransferred | int | the number of bytes that were transferred |
Résultat | void |
protected ProcessTerm ( int linger ) : void | ||
linger | int | a time (in milliseconds) for this to linger before actually going away. -1 means infinite. |
Résultat | void |
public SetAddress ( [ addr ) : void | ||
addr | [ | a string denoting the address to set this to |
Résultat | void |
public TcpListener ( [ ioThread, [ socket, [ options ) : System | ||
ioThread | [ | the IOThread for this to live within |
socket | [ | a SocketBase to listen on |
options | [ | socket-related Options |
Résultat | System |
public TimerEvent ( int id ) : void | ||
id | int | an integer used to identify the timer (not used here) |
Résultat | void |