class TcpSocket

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

A matcher for TCP sockets.

Public Members

static const fidl_type_t * FidlType

Public Methods

::fuchsia::net::matchers::BoundPort & dst_port ()

Match against the destination port of TCP sockets.

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

fidl_xunion_tag_t Ordinal ()

You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need

access to the raw integral ordinal value.

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

void TcpSocket ()
void TcpSocket (TcpSocket && )
::std::unique_ptr<TcpSocket> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, TcpSocket * value, size_t offset)
zx_status_t Clone (TcpSocket * result)
TcpSocket & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
bool has_invalid_tag ()

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

bool is_empty ()

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

::fuchsia::net::matchers::Empty & empty ()

Only matches against the transport protocol and nothing else.

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

const ::fuchsia::net::matchers::Empty & empty ()

Only matches against the transport protocol and nothing else.

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

bool is_src_port ()

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

::fuchsia::net::matchers::BoundPort & src_port ()

Match against the source port of TCP sockets.

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

const ::fuchsia::net::matchers::BoundPort & src_port ()

Match against the source port of TCP sockets.

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

bool is_dst_port ()

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

const ::fuchsia::net::matchers::BoundPort & dst_port ()

Match against the destination port of TCP sockets.

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

bool is_states ()

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

::fuchsia::net::matchers::TcpState & states ()

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.

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

const ::fuchsia::net::matchers::TcpState & states ()

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.

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

::fuchsia::net::matchers::TcpSocket::Tag Which ()

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

const std::vector<uint8_t> * UnknownBytes ()

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

void ~TcpSocket ()
TcpSocket & operator= (TcpSocket && )
TcpSocket WithEmpty (::fuchsia::net::matchers::Empty && )
TcpSocket WithSrcPort (::fuchsia::net::matchers::BoundPort && )
TcpSocket WithDstPort (::fuchsia::net::matchers::BoundPort && )
TcpSocket WithStates (::fuchsia::net::matchers::TcpState && )
TcpSocket & set_empty (::fuchsia::net::matchers::Empty value)
TcpSocket & set_src_port (::fuchsia::net::matchers::BoundPort value)
TcpSocket & set_dst_port (::fuchsia::net::matchers::BoundPort value)
TcpSocket & set_states (::fuchsia::net::matchers::TcpState value)

Enumerations

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

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

Friends

class Equality