Files
filament/third_party/civetweb/docs/api/mg_server_port.md
Philip Rideout 6d74d31ecd Add civetweb to third_party (MIT).
This is a dependency of our upcoming web-based material debugger. This
CL also includes `tnt/CMakeLists.txt`, which builds a static lib in a
minimal configuration that enables WebSocket support. The entire library
is built from only 4 files:

    ${PUBLIC_HDR_DIR}/CivetServer.h
    ${PUBLIC_HDR_DIR}/civetweb.h
    ${SRC_DIR}/civetweb.c
    ${SRC_DIR}/CivetServer.cpp
2019-08-21 17:45:37 -07:00

1002 B

Civetweb API Reference

struct mg_server_port;

Fields

Field Type Description
protocol int The protocol mask where IPv4 is 1, IPv6 is 2 and both IPv4 and IPv6 is 3
port int The port number on which the service listens
is_ssl int 0 for HTTP communication, 1 for HTTPS
is_redirect int 1 if all requests are redirected, otherwise 0
_reserved1 int Reserved for internal use
_reserved2 int Reserved for internal use
_reserved3 int Reserved for internal use
_reserved4 int Reserved for internal use

Description

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.

See Also