Creates new socket for the specified end point.
| C# | Visual Basic | Visual C++ | F# |
public static Socket CreateSocket( IPEndPoint localEP, ProtocolType protocolType )
Public Shared Function CreateSocket ( localEP As IPEndPoint, protocolType As ProtocolType ) As Socket
public: static Socket^ CreateSocket( IPEndPoint^ localEP, ProtocolType protocolType )
static member CreateSocket : localEP : IPEndPoint * protocolType : ProtocolType -> Socket
- localEP (IPEndPoint)
- Local end point.
- protocolType (ProtocolType)
- Protocol type.
Socket
Retruns newly created socket.
Retruns newly created socket.
| Exception | Condition |
|---|---|
| ArgumentNullException | Is raised when localEP is null reference. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119