LumiSoft Net Help
CreateSocket Method (localEP, protocolType)
Namespaces ► LumiSoft.Net ► Net_Utils ► CreateSocket(IPEndPoint, ProtocolType)
Creates new socket for the specified end point.
Declaration Syntax

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

Parameters

localEP (IPEndPoint)
  Local end point.

protocolType (ProtocolType)
  Protocol type.

Return Value
Socket
Retruns newly created socket.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | Is raised when localEP is null reference.

Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119