GetPorts
Retrieve all ports defined in the current SDK settings.
int GetPorts(uint32_t** outPtr, int* outLen)
Parameters
none (results are returned via outPtr and outLen).
Return Value
int: 0 if success.
outPtr: Pointer to an array of all ports (must be freed with FreeBuf).
outLen: Number of ports in outPtr.
Example
// example
uint32_t* arr=NULL; int n=0;
if (GetPorts(&arr,&n)==0 && arr){ FreeBuf(arr);}
Last updated
Was this helpful?