Property | Type | Description | |
---|---|---|---|
Stream | NetworkStream | ||
TCPClient |
Method | Description | |
---|---|---|
Close ( ConnectionClosedBy ClosedBy = ConnectionClosedBy.Server ) : void |
Close this TCP connection.
|
|
Dispose ( ) : void |
Dispose this packet.
|
|
EnableTLSServer ( |
||
Flush ( ) : void | ||
Read ( |
Read a byte value from the TCP connection.
|
|
Read ( Byte Buffer, |
Read multiple byte values from the TCP connection into the given buffer.
|
|
ReadLine ( |
Read a line from the TCP connection.
|
|
ReadString ( |
Read a string value from the TCP connection.
|
|
TCPConnection ( TCPServer TCPServer, |
Create a new TCP connection.
|
|
TryRead ( Byte &Byte, |
Try to read a byte value from the TCP connection.
|
|
WriteLineToResponseStream ( String UTF8Text ) : void |
Writes some UTF-8 text to the underlying stream.
|
|
WriteToResponseStream ( Byte Byte ) : void |
Writes the given byte to the underlying stream.
|
|
WriteToResponseStream ( Stream InputStream, |
Reads the given input stream and writes its content to the underlying stream.
|
|
WriteToResponseStream ( String UTF8Text ) : void |
Writes some UTF-8 text to the underlying stream.
|
public Close ( ConnectionClosedBy ClosedBy = ConnectionClosedBy.Server ) : void | ||
ClosedBy | ConnectionClosedBy | |
return | void |
public EnableTLSServer ( |
||
TLSCert | ||
return | void |
public Read ( |
||
SleepingTimeMS | When no data is currently available wait at least this amount of time [milliseconds]. | |
MaxInitialWaitingTimeMS | When no data is currently available wait at most this amount of time [milliseconds]. | |
return | Byte |
public Read ( Byte Buffer, |
||
Buffer | Byte | An array of byte values. |
SleepingTimeMS | When no data is currently available wait at least this amount of time [milliseconds]. | |
MaxInitialWaitingTimeMS | When no data is currently available wait at most this amount of time [milliseconds]. | |
return |
public ReadLine ( |
||
MaxLength | The maximal length of the string. | |
Encoding | The character encoding of the string (default: UTF8). | |
SleepingTimeMS | When no data is currently available wait at least this amount of time [milliseconds]. | |
MaxInitialWaitingTimeMS | When no data is currently available wait at most this amount of time [milliseconds]. | |
return | String |
public ReadString ( |
||
MaxLength | The maximal length of the string. | |
Encoding | The character encoding of the string (default: UTF8). | |
SleepingTimeMS | When no data is currently available wait at least this amount of time [milliseconds]. | |
MaxInitialWaitingTimeMS | When no data is currently available wait at most this amount of time [milliseconds]. | |
return | String |
public TCPConnection ( TCPServer TCPServer, |
||
TCPServer | TCPServer | |
TCPClient | ||
return | System |
public TryRead ( Byte &Byte, |
||
Byte | Byte | The byte value OR 0x00 if nothing could be read. |
SleepingTimeMS | When no data is currently available wait at least this amount of time [milliseconds]. | |
MaxInitialWaitingTimeMS | When no data is currently available wait at most this amount of time [milliseconds]. | |
return | TCPClientResponse |
public WriteLineToResponseStream ( String UTF8Text ) : void | ||
UTF8Text | String | Some UTF-8 text. |
return | void |
public WriteToResponseStream ( Byte Byte ) : void | ||
Byte | Byte | A single byte. |
return | void |
public WriteToResponseStream ( Stream InputStream, |
||
InputStream | Stream | A data source. |
ReadTimeout | A read timeout on the source. | |
BufferSize | The buffer size for reading. | |
return | void |
public WriteToResponseStream ( String UTF8Text ) : void | ||
UTF8Text | String | Some UTF-8 text. |
return | void |