The following tables list the members exposed by TcpClientEventArgs.
Name | Description | |
---|---|---|
TcpClientEventArgs Constructor | ctor for TcpClientEventArgs |
Name | Description | |
---|---|---|
Client | Returns the TcpClient for this connection, should not be used directly. | |
Host | Returns the TcpServer |
Name | Description | |
---|---|---|
BytesAvailable | Returns the number of bytes currently available. | |
BytesDesired | Sets or Gets the number of bytes required to fulfill the request. The event will not be notified again until the required bytes have been read from the socket. | |
UserData | Sets or Gets custom user information associated with this connection. |
Name | Description | |
---|---|---|
Close | Closes the connection. | |
ConsumeBytes | Consumes (removes from buffer) the number of bytes specified | |
GetBuffer | Returns the buffer being used for reading (not a copy, be careful) | |
Read | Reads (and consumes) the number of bytes specified | |
Write | Writes a response to the client |