Files
filament/third_party/civetweb/docs/api/mg_client_options.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

1010 B

Civetweb API Reference

struct mg_client_options;

Fields

Field Type Description
host const char * The hostname or IP address to connect to
port int The port on the server
client_cert const char * Pointer to client certificate
server_cert const char * Pointer to a server certificate

Description

The the mgclient_options structure contains host and security information to connect as a client to another host. A parameter of this type is used in the call to the function mg_connect_client_secure();. Please note that IPv6 addresses are only permitted if IPv6 support was enabled during compilation. You can use the function mg_check_feature() with the parameter USE_IPV6 while running your application to check if IPv6 is supported.

See Also