Interface ITcpListener
Common interface for TCP listeners.
Namespace: Fibula.Communications.Contracts.Abstractions
Assembly: Fibula.Communications.Contracts.dll
Syntax
public interface ITcpListener
Methods
| Improve this Doc View SourceAcceptSocketAsync()
Accepts a pending connection request as an asynchronous operation.
Declaration
Task<Socket> AcceptSocketAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Net.Sockets.Socket> | A System.Threading.Tasks.Task representing the asynchronous operation. |
Start()
Starts listening for internal connection requests.
Declaration
void Start()
Stop()
Closes the listener.
Declaration
void Stop()