SocketTransportOptions.CreateBoundListenSocket Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.