class · System.Net
TcpClient
public class System.Net.TcpClient : System.Any
One TCP connection.
- Tipo
- class
- Espacio de nombres
- System.Net
- Ensamblado
- System.Core
- Acceso
- public, final
- Archivo fuente
Net.ant
Herencia
- Clases base
-
AnyTcpClient
Constructores
Propiedades
property Stream: System.Net.NetworkStream
#
Métodos
static method Connect(host: System.String<u8>, port: i32) -> System.Net.TcpClient
#
Connects to host (a name or an address) at port.
method Write(text: System.String<u8>) -> void
#
Writes the text's UTF-8 bytes.
method Read(max: i32) -> System.String<u8>
#
Reads what has arrived, up to max bytes, as text (empty when the other end closed).
method Close() -> void
#
Miembros privados e internos (2)
Miembros heredados (5)
GetTypemétodo de AnyUndescribedmétodo de AnyToStringmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
TcpClient en Larva HIR, descompilado a partir de su Larva HIR.
// One TCP connection.
public class System.Net.TcpClient : System.Any
{
field stream: System.Net.NetworkStream
static method ConnectTo(host: u16[], port: i64) -> i64
constructor TcpClient(handle: i64)
// Connects to `host` (a name or an address) at `port`.
static method Connect(host: System.String<u8>, port: i32) -> System.Net.TcpClient
// Writes the text's UTF-8 bytes.
method Write(text: System.String<u8>) -> void
// Reads what has arrived, up to `max` bytes, as text (empty when the other end closed).
method Read(max: i32) -> System.String<u8>
method Close() -> void
property Stream: System.Net.NetworkStream
}