Creates new socket for the specified end point.
| C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Use Net_Utils.CreateSocket instead of it")] public static Socket CreateSocket( IPEndPoint localEP, ProtocolType protocolType )
<ObsoleteAttribute("Use Net_Utils.CreateSocket instead of it")> _ Public Shared Function CreateSocket ( _ localEP As IPEndPoint, _ protocolType As ProtocolType _ ) As Socket
[ObsoleteAttribute(L"Use Net_Utils.CreateSocket instead of it")] public: static Socket^ CreateSocket( IPEndPoint^ localEP, ProtocolType protocolType )
- localEP (IPEndPoint)
- Local end point.
- protocolType (ProtocolType)
- Protocol type.
Retruns newly created socket.