CreateWithId

Creates (forwards) a proxy on the specified port, using a given proxy ID, plan, and action type.

int CreateWithId(int port, char* proxyId, char* plan, char* actionType)

Parameters

  • port (int): Local port to bind.

  • proxyId (char*): ID of the proxy to forward. This also serves as the requestId used for receiving success/failure status in event callbacks.

  • plan (char*): Plan ID (default "1").

  • actionType (char*): Action type of the user (default "manual").

Return Value

  • int: 0 on success; non-zero on error.

Example

// example

int rc = CreateWithId(60000, "677e2c4517f247bc89dd66a4", "1", "manual");

Last updated

Was this helpful?