class · System.Net

TcpListener

public class System.Net.TcpListener : System.Any

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

Kind
class
Namespace
System.Net
Assembly
System.Core
Access
public, final
Source file
Net.ant

Inheritance

Base classes
Any TcpListener

Constructors

constructor TcpListener(port: i32)
#

Properties

property Port: i32
#

read-only

The port it listens on.

Methods

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

Waits for the next connection.

method Close() -> void
#

Private and internal members (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

Inherited members (5)

Source

TcpListener as Larva HIR, decompiled from its 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