webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Attributes | List of all members
rtc::TestClient Class Reference

#include <testclient.h>

Inheritance diagram for rtc::TestClient:
sigslot::has_slots<> sigslot::has_slots<> sigslot::has_slots_interface sigslot::has_slots_interface sigslot::has_slots_interface sigslot::has_slots_interface

Classes

struct  Packet
 

Public Member Functions

 TestClient (AsyncPacketSocket *socket)
 
 ~TestClient () override
 
SocketAddress address () const
 
SocketAddress remote_address () const
 
bool CheckConnState (AsyncPacketSocket::State state)
 
bool CheckConnected ()
 
int Send (const char *buf, size_t size)
 
int SendTo (const char *buf, size_t size, const SocketAddress &dest)
 
PacketNextPacket (int timeout_ms)
 
bool CheckNextPacket (const char *buf, size_t len, SocketAddress *addr)
 
bool CheckNoPacket ()
 
int GetError ()
 
int SetOption (Socket::Option opt, int value)
 
bool ready_to_send () const
 
int ready_to_send_count () const
 
 TestClient (AsyncPacketSocket *socket)
 
 ~TestClient () override
 
SocketAddress address () const
 
SocketAddress remote_address () const
 
bool CheckConnState (AsyncPacketSocket::State state)
 
bool CheckConnected ()
 
int Send (const char *buf, size_t size)
 
int SendTo (const char *buf, size_t size, const SocketAddress &dest)
 
PacketNextPacket (int timeout_ms)
 
bool CheckNextPacket (const char *buf, size_t len, SocketAddress *addr)
 
bool CheckNoPacket ()
 
int GetError ()
 
int SetOption (Socket::Option opt, int value)
 
bool ready_to_send () const
 
int ready_to_send_count () const
 
- Public Member Functions inherited from sigslot::has_slots<>
 has_slots ()
 
 has_slots ()
 
 ~has_slots ()
 
 ~has_slots ()
 
- Public Member Functions inherited from sigslot::has_slots_interface
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 

Static Public Attributes

static const int kTimeoutMs = 5000
 

Additional Inherited Members

- Protected Member Functions inherited from sigslot::has_slots_interface
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 

Constructor & Destructor Documentation

◆ TestClient() [1/2]

rtc::TestClient::TestClient ( AsyncPacketSocket socket)
explicit

◆ ~TestClient() [1/2]

rtc::TestClient::~TestClient ( )
override

◆ TestClient() [2/2]

rtc::TestClient::TestClient ( AsyncPacketSocket socket)
explicit

◆ ~TestClient() [2/2]

rtc::TestClient::~TestClient ( )
override

Member Function Documentation

◆ address() [1/2]

SocketAddress rtc::TestClient::address ( ) const
inline

◆ address() [2/2]

SocketAddress rtc::TestClient::address ( ) const
inline

◆ CheckConnected() [1/2]

bool rtc::TestClient::CheckConnected ( )
inline

◆ CheckConnected() [2/2]

bool rtc::TestClient::CheckConnected ( )
inline

◆ CheckConnState() [1/2]

bool rtc::TestClient::CheckConnState ( AsyncPacketSocket::State  state)

◆ CheckConnState() [2/2]

bool rtc::TestClient::CheckConnState ( AsyncPacketSocket::State  state)

◆ CheckNextPacket() [1/2]

bool rtc::TestClient::CheckNextPacket ( const char *  buf,
size_t  len,
SocketAddress addr 
)

◆ CheckNextPacket() [2/2]

bool rtc::TestClient::CheckNextPacket ( const char *  buf,
size_t  len,
SocketAddress addr 
)

◆ CheckNoPacket() [1/2]

bool rtc::TestClient::CheckNoPacket ( )

◆ CheckNoPacket() [2/2]

bool rtc::TestClient::CheckNoPacket ( )

◆ GetError() [1/2]

int rtc::TestClient::GetError ( )

◆ GetError() [2/2]

int rtc::TestClient::GetError ( )

◆ NextPacket() [1/2]

Packet* rtc::TestClient::NextPacket ( int  timeout_ms)

◆ NextPacket() [2/2]

TestClient::Packet * rtc::TestClient::NextPacket ( int  timeout_ms)

◆ ready_to_send() [1/2]

bool rtc::TestClient::ready_to_send ( ) const
inline

◆ ready_to_send() [2/2]

bool rtc::TestClient::ready_to_send ( ) const
inline

◆ ready_to_send_count() [1/2]

int rtc::TestClient::ready_to_send_count ( ) const
inline

◆ ready_to_send_count() [2/2]

int rtc::TestClient::ready_to_send_count ( ) const
inline

◆ remote_address() [1/2]

SocketAddress rtc::TestClient::remote_address ( ) const
inline

◆ remote_address() [2/2]

SocketAddress rtc::TestClient::remote_address ( ) const
inline

◆ Send() [1/2]

int rtc::TestClient::Send ( const char *  buf,
size_t  size 
)

◆ Send() [2/2]

int rtc::TestClient::Send ( const char *  buf,
size_t  size 
)

◆ SendTo() [1/2]

int rtc::TestClient::SendTo ( const char *  buf,
size_t  size,
const SocketAddress dest 
)

◆ SendTo() [2/2]

int rtc::TestClient::SendTo ( const char *  buf,
size_t  size,
const SocketAddress dest 
)

◆ SetOption() [1/2]

int rtc::TestClient::SetOption ( Socket::Option  opt,
int  value 
)

◆ SetOption() [2/2]

int rtc::TestClient::SetOption ( Socket::Option  opt,
int  value 
)

Member Data Documentation

◆ kTimeoutMs

static const int rtc::TestClient::kTimeoutMs = 5000
static

The documentation for this class was generated from the following files: