Search Results for

    Show / Hide Table of Contents

    Method DefineConnection

    DefineConnection(string, int, string, int)

    Defines the connection between this client application and TopSolid host for remote access.

    Declaration
    public static void DefineConnection(string inHostAddress, int inHostPort, string inClientAddress, int inClientPort)
    Parameters
    Type Name Description
    string inHostAddress

    Host IP address (or "localhost" for local machine) if using TCP, or null otherwize (default).

    int inHostPort

    Host port used if using TCP, or 0 otherwize (default).

    string inClientAddress

    Client IP address (or "localhost" for local machine) if using TCP and managing events, or null otherwize (default).

    int inClientPort

    Client port used if using TCP and managing events, or 0 otherwize (default).

    Remarks

    This method must be called before connecting to a remote TopSolid host on another machine to use TCP instead of named pipes, it is not needed to call it otherwize.

    When performing remote access and using events, inClientAddress and inClientPort must be set to allow TopSolid to connect to this client application, otherwize they must be set to null and 0.

    This method cannot be called once connected to TopSolid, i.e. when IsConnected is true.

    In this article
    Back to top
    • Term of use
    • Corporate information
    • Privacy Policy - GDPR

    Copyright ©2025 TopSolid - All rights reserved.