Civetweb API Reference

struct mg_client_options;


hostconst char *The hostname or IP address to connect to
portintThe port on the server
client_certconst char *Pointer to client certificate
server_certconst char *Pointer to a server certificate


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