Eplan Platform API
Eplan.EplApi.RemoteClient Namespace / EplanRemoteClient Class / GetFreePort Method
Port number

In This Topic
    GetFreePort Method
    In This Topic
    Returns first free port which can act as a tunnel for remote server.
    Syntax
    public static bool GetFreePort( 
       ref int nPort
    )
    public:
    static bool GetFreePort( 
       int% nPort
    ) 

    Parameters

    nPort
    Port number

    Return Value

    Returns 0 if free tcp port was not found. Tcp port between MIN_PORT_NR (57315) and MAX_PORT_NR(65535) otherwise.
    See Also