NAME

gc_cloudflare_inet_proto - Internet Protocol (IP) options for Cloudflare connections.

SYNOPSIS

#include <game-carrier/common.h>

enum gc_cloudflare_inet_proto {
    GC_CLOUDFLARE_INET_PROTO_UNKNOWN = 0,
    GC_CLOUDFLARE_INET_PROTO_TCP4 = (1 << 0),
    GC_CLOUDFLARE_INET_PROTO_TCP6 = (1 << 1),
    GC_CLOUDFLARE_INET_PROTO_COUNT = 2
};

DESCRIPTION

The Cloudflare configuration section contains the inet_proto field. This field’s flags can be read using the getOpt function. The following enum defines flag masks for different protocols accepted via Cloudflare.

Name Value Description
GC_CLOUDFLARE_INET_PROTO_UNKNOWN 0 For internal usage only.
GC_CLOUDFLARE_INET_PROTO_TCP4 0x0001 TCP 4 connections accepted via Cloudflare.
GC_CLOUDFLARE_INET_PROTO_TCP6 0x0002 TCP 6 connections accepted via Cloudflare.
GC_CLOUDFLARE_INET_PROTO_COUNT 2 Total number of available protocols.

SEE ALSO

getOpt