SocketTransportOptions.CreateBoundListenSocket Property

Definition

A function used to create a new Socket to listen with. If not set, CreateDefaultBoundListenSocket(EndPoint) is used.

public Func<System.Net.EndPoint,System.Net.Sockets.Socket> CreateBoundListenSocket { get; set; }
member this.CreateBoundListenSocket : Func<System.Net.EndPoint, System.Net.Sockets.Socket> with get, set
Public Property CreateBoundListenSocket As Func(Of EndPoint, Socket)

Property Value

Remarks

Implementors are expected to call Bind(EndPoint) on the Socket. Please note that CreateDefaultBoundListenSocket(EndPoint) calls Bind(EndPoint) as part of its implementation, so implementors using this method do not need to call it again.

Applies to