struct mg_server_port;| Field | Type | Description | 
|---|---|---|
| protocol | int | The protocol mask where IPv4is 1,IPv6is 2 and bothIPv4andIPv6is 3 | 
| port | int | The port number on which the service listens | 
| is_ssl | int | 0 for HTTPcommunication, 1 forHTTPS | 
| is_redirect | int | 1 if all requests are redirected, otherwise 0 | 
| is_optional | int | 1 if port is optional, otherwise 0 | 
| is_bound | int | 1 if the port is bound, otherwise 0 | 
| _reserved3 | int | Reserved for internal use | 
| _reserved4 | int | Reserved for internal use | 
A call to the function mg_get_server_ports() returns a list of structures with information about each running Civetweb service. These structures are of type struct mg_server_port and contain the base information of each service.