For the complete documentation index, see llms.txt. This page is also available as Markdown.

CreateProxyByPortConfigs

Forwards multiple proxies based on a list of ports. Proxy information is taken from existing configured ports; any port without configuration is skipped.

int CreateProxyByPortConfigs(char* requestId, char* plan, uint32_t* ports, int n, uint32_t** outPtr, int* outLen)

Parameters

  • requestId (char*): Correlation ID used to receive success/failure status via events.

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

  • ports (uint32_t*): Input array of ports to forward.

  • n (int): Number of elements in ports.

  • outPtr (uint32_t**): Output pointer that will receive a heap-allocated array of successfully forwarded ports. Must be freed with FreeBuf().

  • outLen (int*): Output count of elements written to outPtr.

Return Value

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

NOTE

  • Action type defaults to "manual" internally; there is no actionType parameter for this function.

  • When the function returns 0 but outLen is 0, no ports were forwarded (all skipped or failed).

  • Caller must FreeBuf(outPtr) when outPtr is non-NULL.

Example

Last updated

Was this helpful?