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
Any TcpClient

Constructores

constructor TcpClient(handle: i64)
#

Propiedades

property Stream: System.Net.NetworkStream
#

read-only

Métodos

static method Connect(host: System.String<u8>, port: i32) -> System.Net.TcpClient
#

static

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)

field stream: System.Net.NetworkStream
#

private

static method ConnectTo(host: u16[], port: i64) -> i64
#

private static

Miembros heredados (5)

Código fuente

TcpClient en Larva HIR, descompilado a partir de su Larva HIR.

System.Net.TcpClient.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
}
Esc