class · System.Net

TcpListener

public class System.Net.TcpListener : System.Any

Accepts TCP connections on a port (0: one the system picks; see Port).

Tipo
class
Espacio de nombres
System.Net
Ensamblado
System.Core
Acceso
public, final
Archivo fuente
Net.ant

Herencia

Clases base
Any TcpListener

Constructores

constructor TcpListener(port: i32)
#

Propiedades

property Port: i32
#

read-only

The port it listens on.

Métodos

method Accept() -> System.Net.TcpClient
#

Waits for the next connection.

method Close() -> void
#

Miembros privados e internos (5)

field handle: i64
#

private

static method ListenOn(port: i64) -> i64
#

private static

static method AcceptOn(listener: i64) -> i64
#

private static

static method PortOf(handle: i64) -> i64
#

private static

static method CloseHandle(handle: i64) -> i64
#

private static

Miembros heredados (5)

Código fuente

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

System.Net.TcpListener.hir
// Accepts TCP connections on a port (0: one the system picks; see Port).
public class System.Net.TcpListener : System.Any
{
    field handle: i64
    static method ListenOn(port: i64) -> i64
    static method AcceptOn(listener: i64) -> i64
    static method PortOf(handle: i64) -> i64
    static method CloseHandle(handle: i64) -> i64
    constructor TcpListener(port: i32)
    // Waits for the next connection.
    method Accept() -> System.Net.TcpClient
    method Close() -> void
    // The port it listens on.
    property Port: i32
}
Esc