Skip to main content

TcpListener Class

Namespace: System.Net.Sockets · Assembly: GHIElectronics.TinyCLR.Networking

No description available.

public class TcpListener

Constructors

TcpListener(IPEndPoint localEP)

public TcpListener(IPEndPoint localEP)

No description available.

ParameterTypeDescription
localEPIPEndPoint

TcpListener(IPAddress localaddr, int port)

public TcpListener(IPAddress localaddr, int port) : this(new IPEndPoint(localaddr, port))

No description available.

ParameterTypeDescription
localaddrIPAddress
portint

Properties

Server

public Socket Server { get; }

Gets the name of the server that sent the response. (inherited)

Active

protected bool Active { get; }

No description available.

LocalEndpoint

public EndPoint LocalEndpoint { get; }

No description available.

Methods

Start()

public void Start()

Starts the timer. (inherited)

Start(int backlog)

public void Start(int backlog)

No description available.

ParameterTypeDescription
backlogint

Stop()

public void Stop()

Stops the timer. (inherited)

Pending()

public bool Pending()

No description available.

Returns bool

AcceptSocket()

public Socket AcceptSocket()

No description available.

Returns Socket

AcceptTcpClient()

public TcpClient AcceptTcpClient()

No description available.

Returns TcpClient

Create(int port)

public static TcpListener Create(int port)

Creates a WebRequest . (inherited)

ParameterTypeDescription
portint

Returns TcpListener