Teradici PC over IP (PCOIP) > Alphabetical Listing of Functions > pcoip_connect

pcoip_connect

Connects to the remote desktop.

C Language

int pcoip_connect( const char* hostname, const char* ip_addr, const char* sni, const char* port );

Example Teradici PCoIP Protocol

Arguments

Name Comments
hostname The server.
ip_addr The address of the server.
sni The Server Name Indication of the target PCoIP server.
port The server port.

General

pcoip_connect connects to the remote desktop. Before calling pcoip_connect, set the credentials with pcoip_set_auth.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

Parameterization

The hostname, ip_addr, sni, and port arguments can be parameterized.

Example

This example shows a connection and disconnection.

	pcoip_set_broker_address("mybroker.com", "443");
			
	pcoip_set_auth("hogan", "my_demain", lr_decrypt("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();