webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | List of all members
cricket::RelayEntry Class Reference
Inheritance diagram for cricket::RelayEntry:
rtc::MessageHandler sigslot::has_slots<> sigslot::has_slots_interface sigslot::has_slots_interface

Public Member Functions

 RelayEntry (RelayPort *port, const rtc::SocketAddress &ext_addr)
 
 ~RelayEntry ()
 
RelayPortport ()
 
const rtc::SocketAddressaddress () const
 
void set_address (const rtc::SocketAddress &addr)
 
bool connected () const
 
bool locked () const
 
int GetError ()
 
void Connect ()
 
void OnConnect (const rtc::SocketAddress &mapped_addr, RelayConnection *socket)
 
int SendTo (const void *data, size_t size, const rtc::SocketAddress &addr, const rtc::PacketOptions &options)
 
void ScheduleKeepAlive ()
 
void SetServerIndex (size_t sindex)
 
int SetSocketOption (rtc::Socket::Option opt, int value)
 
size_t ServerIndex () const
 
void HandleConnectFailure (rtc::AsyncPacketSocket *socket)
 
virtual void OnMessage (rtc::Message *pmsg)
 
- Public Member Functions inherited from rtc::MessageHandler
virtual WEBRTC_DYLIB_EXPORT ~MessageHandler ()
 
virtual WEBRTC_DYLIB_EXPORT ~MessageHandler ()
 
- 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 Member Functions

static RelayConnectionGetBestConnection (RelayConnection *conn1, RelayConnection *conn2)
 

Additional Inherited Members

- Protected Member Functions inherited from rtc::MessageHandler
 MessageHandler ()
 
 MessageHandler ()
 
- 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

◆ RelayEntry()

cricket::RelayEntry::RelayEntry ( RelayPort port,
const rtc::SocketAddress ext_addr 
)

◆ ~RelayEntry()

cricket::RelayEntry::~RelayEntry ( )

Member Function Documentation

◆ address()

const rtc::SocketAddress& cricket::RelayEntry::address ( ) const
inline

◆ Connect()

void cricket::RelayEntry::Connect ( )

◆ connected()

bool cricket::RelayEntry::connected ( ) const
inline

◆ GetBestConnection()

RelayConnection * cricket::RelayEntry::GetBestConnection ( RelayConnection conn1,
RelayConnection conn2 
)
static

◆ GetError()

int cricket::RelayEntry::GetError ( )

◆ HandleConnectFailure()

void cricket::RelayEntry::HandleConnectFailure ( rtc::AsyncPacketSocket socket)

◆ locked()

bool cricket::RelayEntry::locked ( ) const
inline

◆ OnConnect()

void cricket::RelayEntry::OnConnect ( const rtc::SocketAddress mapped_addr,
RelayConnection socket 
)

◆ OnMessage()

void cricket::RelayEntry::OnMessage ( rtc::Message pmsg)
virtual

Implements rtc::MessageHandler.

◆ port()

RelayPort* cricket::RelayEntry::port ( )
inline

◆ ScheduleKeepAlive()

void cricket::RelayEntry::ScheduleKeepAlive ( )

◆ SendTo()

int cricket::RelayEntry::SendTo ( const void data,
size_t  size,
const rtc::SocketAddress addr,
const rtc::PacketOptions options 
)

◆ ServerIndex()

size_t cricket::RelayEntry::ServerIndex ( ) const
inline

◆ set_address()

void cricket::RelayEntry::set_address ( const rtc::SocketAddress addr)
inline

◆ SetServerIndex()

void cricket::RelayEntry::SetServerIndex ( size_t  sindex)
inline

◆ SetSocketOption()

int cricket::RelayEntry::SetSocketOption ( rtc::Socket::Option  opt,
int  value 
)

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