Share this page

# pcoip_set_broker_address

Sets the address and port of the broker for a brokered connection to the remote desktop.

## C Language

int pcoip_set_broker_address( const char* broker_address, const char* port );

Example | Teradici PCoIP Protocol Functions

## Arguments

Name | Comments
--- | ---
broker_address | The address of the broker machine (Teradici Connection Manager). The address can be an IP address or FQDN.
port | Port of the broker machine.

## General Information

pcoip_set_broker_address sets the address and port of the broker for a brokered connection to the remote desktop. Call pcoip_set_broker_address before calling pcoip_connect. If the broker address and port are not set with pcoip_set_broker_address, pcoip_connect will use the address of the desktop and the default broker port (443) as the broker for the connection

## Return Values

E_OK |
E_ALREADY_CONNECTED | Do not call this function after the connection is established.
E_NOT_CONNECTED | Action cannot be performed. There is no connection to the remote server.
E_OUT_OF_TIME | Function timed out.
E_ILLEGAL_PARAMETER | Illegal parameter found.
E_INTERNAL | Internal error found.

## Parameterization

The broker_address and port arguments can be parameterized.

## Example

This example shows a connection and disconnection.

    	pcoip_set_broker_address("mybroker.com", "443");

    	pcoip_set_broker_address("hogan", "my_domain", lr_unmask("123abc345def678ghi"));

    	pcoip_connect("my_server", "123.123.123.123", "my_server", "4172" );

    	pcoip_set_display(800, 582);

    	lr_think_time(5); pcoip_mouse_click(626, 13, LEFT_BUTTON, 0, "snapshot2");

    	pcoip_disconnect();

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: