C# Class System.Net.Sockets.TcpListener

Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
AcceptSocket ( ) : Socket
AcceptSocketAsync ( ) : Task
AcceptTcpClient ( ) : TcpClient
AcceptTcpClientAsync ( ) : Task
AllowNatTraversal ( bool allowed ) : void
BeginAcceptSocket ( AsyncCallback callback, object state ) : IAsyncResult
BeginAcceptTcpClient ( AsyncCallback callback, object state ) : IAsyncResult
Create ( int port ) : TcpListener
EndAcceptSocket ( IAsyncResult asyncResult ) : Socket
EndAcceptTcpClient ( IAsyncResult asyncResult ) : TcpClient
Pending ( ) : bool
Start ( ) : void
Start ( int backlog ) : void
Stop ( ) : void
TcpListener ( IPAddress localaddr, int port ) : System
TcpListener ( IPEndPoint localEP ) : System

Private Methods

Method Description
TcpListener ( int port ) : System

Method Details

AcceptSocket() public method

public AcceptSocket ( ) : Socket
return Socket

AcceptSocketAsync() public method

public AcceptSocketAsync ( ) : Task
return Task

AcceptTcpClient() public method

public AcceptTcpClient ( ) : TcpClient
return TcpClient

AcceptTcpClientAsync() public method

public AcceptTcpClientAsync ( ) : Task
return Task

AllowNatTraversal() public method

public AllowNatTraversal ( bool allowed ) : void
allowed bool
return void

BeginAcceptSocket() public method

public BeginAcceptSocket ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
return IAsyncResult

BeginAcceptTcpClient() public method

public BeginAcceptTcpClient ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
return IAsyncResult

Create() public static method

public static Create ( int port ) : TcpListener
port int
return TcpListener

EndAcceptSocket() public method

public EndAcceptSocket ( IAsyncResult asyncResult ) : Socket
asyncResult IAsyncResult
return Socket

EndAcceptTcpClient() public method

public EndAcceptTcpClient ( IAsyncResult asyncResult ) : TcpClient
asyncResult IAsyncResult
return TcpClient

Pending() public method

public Pending ( ) : bool
return bool

Start() public method

public Start ( ) : void
return void

Start() public method

public Start ( int backlog ) : void
backlog int
return void

Stop() public method

public Stop ( ) : void
return void

TcpListener() public method

public TcpListener ( IPAddress localaddr, int port ) : System
localaddr IPAddress
port int
return System

TcpListener() public method

public TcpListener ( IPEndPoint localEP ) : System
localEP IPEndPoint
return System