Open topic with navigation

# Create a Connection

To send actions to an ACI server, you must first create a connection. When you create the connection, you specify the host and port of the server you want to send the actions to. You can specify other connection settings, such as the number of times to retry a request that fails before abandoning it. For an example of how to create a connection, see Create a Connection Using the .NET IDOL SDK..

## Create a Connection Using the .NET IDOL SDK.

The following example shows how to create various types of connection.

    // Create an unencrypted connection using the default settings.
    IConnection unsecuredConnection =
        AciClient.CreateUnsecuredConnection("localhost", 9900);

    // Create a connection secured using BTEA encryption.
    uint[] key = { 123, 234, 345, 456 };
    IConnection encryptedConnection =
        AciClient.CreateBteaConnection("localhost", 9900, key);

    // Create an unencrypted connection, overriding the number of
    // retries.
    HttpSettings settings = new HttpSettings();
    settings.Retries = 10;
    IConnection anotherConnection =
        AciClient.CreateUnsecuredConnection(
            "localhost", 9900, settings);

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm