mg_get_server_ports( ctx, size, ports );
|The context for which the server ports are requested|
|The size of the buffer to store the port information|
|Buffer to store the port information|
|The actual number of ports returned, or an error condition|
mg_get_server_ports() returns a list with server ports on which the Civetweb server is listening. The ports are returned for a given context and stored with additional information like the SSL and redirection state in a list of structures. The list of structures must be allocated by the calling routine. The size of the structure is also passed to
The function returns the number of items in the list, or a negative value if an error occured.