Свойство | Тип | Описание | |
---|---|---|---|
Stream | NetworkStream | ||
TCPClient |
Метод | Описание | |
---|---|---|
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 | |
Результат | void |
public EnableTLSServer ( |
||
TLSCert | ||
Результат | 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]. | |
Результат | 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]. | |
Результат |
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]. | |
Результат | 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]. | |
Результат | String |
public TCPConnection ( TCPServer TCPServer, |
||
TCPServer | TCPServer | |
TCPClient | ||
Результат | 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]. | |
Результат | TCPClientResponse |
public WriteLineToResponseStream ( String UTF8Text ) : void | ||
UTF8Text | String | Some UTF-8 text. |
Результат | void |
public WriteToResponseStream ( Byte Byte ) : void | ||
Byte | Byte | A single byte. |
Результат | void |
public WriteToResponseStream ( Stream InputStream, |
||
InputStream | Stream | A data source. |
ReadTimeout | A read timeout on the source. | |
BufferSize | The buffer size for reading. | |
Результат | void |
public WriteToResponseStream ( String UTF8Text ) : void | ||
UTF8Text | String | Some UTF-8 text. |
Результат | void |