TcpListener Methods
.NET Framework 4.5
The TcpListener type exposes the following members.
| Name | Description | |
|---|---|---|
|
AcceptSocket | Accepts a pending connection request. |
|
AcceptSocketAsync | Accepts a pending connection request as an asynchronous operation. |
|
AcceptTcpClient | Accepts a pending connection request. |
|
AcceptTcpClientAsync | Accepts a pending connection request as an asynchronous operation. |
|
AllowNatTraversal | Enables or disables Network Address Translation (NAT) traversal on a TcpListener instance. |
|
BeginAcceptSocket | Begins an asynchronous operation to accept an incoming connection attempt. |
|
BeginAcceptTcpClient | Begins an asynchronous operation to accept an incoming connection attempt. |
|
Create | Creates a new TcpListener instance to listen on the specified port. |
|
EndAcceptSocket | Asynchronously accepts an incoming connection attempt and creates a new Socket to handle remote host communication. |
|
EndAcceptTcpClient | Asynchronously accepts an incoming connection attempt and creates a new TcpClient to handle remote host communication. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Pending | Determines if there are pending connection requests. |
|
Start() | Starts listening for incoming connection requests. |
|
Start(Int32) | Starts listening for incoming connection requests with a maximum number of pending connection. |
|
Stop | Closes the listener. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |