class UdpSocket

Defined at line 1417 of file fidling/gen/sdk/fidl/fuchsia.net.matchers/fuchsia.net.matchers/cpp/fidl/fuchsia.net.matchers/cpp/natural_types.h

A matcher for UDP sockets.

Public Methods

void UdpSocket (UdpSocket && other)
UdpSocket & operator= (UdpSocket && other)
void UdpSocket (const UdpSocket & other)
UdpSocket & operator= (const UdpSocket & other)
bool operator== (const UdpSocket & other)
bool operator!= (const UdpSocket & other)
bool IsUnknown ()
::fuchsia_net_matchers::UdpSocket::Tag Which ()
UdpSocket WithEmpty (::fuchsia_net_matchers::Empty val)
const ::fidl::internal::UnionMemberView<1, Storage_> empty ()
::fidl::internal::UnionMemberView<1, Storage_> empty ()
UdpSocket & empty (::fuchsia_net_matchers::Empty value)

Only matches against the transport protocol and nothing else.

UdpSocket WithSrcPort (::fuchsia_net_matchers::BoundPort val)
const ::fidl::internal::UnionMemberView<2, Storage_> src_port ()
::fidl::internal::UnionMemberView<2, Storage_> src_port ()
UdpSocket & src_port (::fuchsia_net_matchers::BoundPort value)

Match against the source port of UDP sockets.

UdpSocket WithDstPort (::fuchsia_net_matchers::BoundPort val)
const ::fidl::internal::UnionMemberView<3, Storage_> dst_port ()
::fidl::internal::UnionMemberView<3, Storage_> dst_port ()
UdpSocket & dst_port (::fuchsia_net_matchers::BoundPort value)

Match against the destination port of UDP sockets.

UdpSocket WithStates (::fuchsia_net_matchers::UdpState val)
const ::fidl::internal::UnionMemberView<4, Storage_> states ()
::fidl::internal::UnionMemberView<4, Storage_> states ()
UdpSocket & states (::fuchsia_net_matchers::UdpState value)

The UDP socket's state must be contained in the set of states.

If unset, matches all states, just as if it was fully set.

void UdpSocket (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Enumerations

enum Tag
Name Value
kEmpty 1
kSrcPort 2
kDstPort 3
kStates 4
_do_not_handle_this__write_a_default_case_instead ::std::numeric_limits<::fidl_union_tag_t>::max()

TODO: share union tag types between wire

&

natural.

Defined at line 1425 of file fidling/gen/sdk/fidl/fuchsia.net.matchers/fuchsia.net.matchers/cpp/fidl/fuchsia.net.matchers/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits