Namespaces

Enumerations

enum class TimestampOption : uint32_t
Name Value Comments
kDisabled 0u

Do not report timestamp.

kNanosecond 1u

Report timestamp with nanosecond precision.

kMicrosecond 2u

Report timestamp with microsecond precision.

Packet timestamp reporting precision options.

Defined at line 564 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

enum class TcpCongestionControl : uint32_t
Name Value
kReno 1u
kCubic 2u

TCP congestion control modes.

Defined at line 643 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

enum class Domain : int16_t
Name Value Comments
kIpv4 0u

An IPv4 socket. Equivalent to `AF_INET`.

kIpv6 1u

An IPv6 socket. Equivalent to `AF_INET6`.

A socket's domain.

Determines the addressing domain for a socket.

Defined at line 669 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

enum class DatagramSocketProtocol : uint32_t
Name Value Comments
kUdp 1u

UDP (User Datagram Protocol).

A UDP socket is equivalent to the POSIX API of `SOCK_DGRAM` with a
protocol of 0 or `IPPROTO_UDP`.

kIcmpEcho 2u

ICMP (Internet Control Message Protocol) echo.

An ICMP echo socket is equivalent to the POSIX API of `SOCK_DGRAM` with
a protocol of `IPPROTO_ICMP` `IPPROTO_ICMPV6` (depending on provided
domain).

Datagrams sent over an ICMP echo socket *must* have a valid ICMP or
ICMPv6 echo header.

Protocols supported by [`fuchsia.posix.socket/DatagramSocket`].

`DatagramSocketProtocol` enumerates the protocols supported by the network

stack over datagram sockets.

Defined at line 692 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

enum class StreamSocketProtocol : uint32_t
Name Value Comments
kTcp 0u

TCP (Transmission Control Protocol).

A TCP socket is equivalent to the POSIX API of `SOCK_STREAM` with a
protocol of 0 or `IPPROTO_TCP`.

Protocols supported by [`fuchsia.posix.socket/StreamSocket`].

`StreamSocketProtocol` enumerates the protocols supported by the network

stack over stream sockets.

Defined at line 731 of file fidling/gen/sdk/fidl/fuchsia.posix.socket/fuchsia.posix.socket/cpp/fidl/fuchsia.posix.socket/cpp/common_types.h

Records

Variables

const char * kDatagramSocketProtocolName
const char * kStreamSocketProtocolName
const char * kSynchronousDatagramSocketProtocolName