class TcpSocket

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

A matcher for TCP sockets.

Public Methods

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

Only matches against the transport protocol and nothing else.

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

Match against the source port of TCP sockets.

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

Match against the destination port of TCP sockets.

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

The TCP socket's state must be contained in the set of states. If unset,

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

The constants are structured to correspond to the enum values of

fuchsia.net.tcp.States.

void TcpSocket (::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 1343 of file fidling/gen/sdk/fidl/fuchsia.net.matchers/fuchsia.net.matchers/cpp/fidl/fuchsia.net.matchers/cpp/natural_types.h

Friends

class NaturalUnionCodingTraits