Class FibulaTcpListener
Class that represents a TCP listener.
Inheritance
System.Object
FibulaTcpListener
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fibula.Communications.Listeners
Assembly: Fibula.Communications.dll
Syntax
public class FibulaTcpListener : ITcpListener
Constructors
| Improve this Doc View SourceFibulaTcpListener(IPAddress, UInt16)
Initializes a new instance of the FibulaTcpListener class.
Declaration
public FibulaTcpListener(IPAddress ipAddress, ushort port)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | ipAddress | The ip address to listen on. |
System.UInt16 | port | The port to listen on. |
Methods
| Improve this Doc View SourceAcceptSocketAsync()
Accepts a pending connection request as an asynchronous operation.
Declaration
public 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
public void Start()
Stop()
Closes the listener.
Declaration
public void Stop()