webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
cricket::UDPPort Class Reference

#include <stunport.h>

Inheritance diagram for cricket::UDPPort:
cricket::Port cricket::Port sigslot::has_slots<> rtc::MessageHandler cricket::PortInterface sigslot::has_slots<> rtc::MessageHandler cricket::PortInterface sigslot::has_slots<> rtc::MessageHandler cricket::PortInterface sigslot::has_slots<> rtc::MessageHandler cricket::PortInterface cricket::StunPort cricket::StunPort cricket::TestUDPPort cricket::TestUDPPort

Public Member Functions

virtual ~UDPPort ()
 
rtc::SocketAddress GetLocalAddress () const
 
const ServerAddressesserver_addresses () const
 
void set_server_addresses (const ServerAddresses &addresses)
 
virtual void PrepareAddress ()
 
virtual ConnectionCreateConnection (const Candidate &address, CandidateOrigin origin)
 
virtual int SetOption (rtc::Socket::Option opt, int value)
 
virtual int GetOption (rtc::Socket::Option opt, int *value)
 
virtual int GetError ()
 
virtual bool HandleIncomingPacket (rtc::AsyncPacketSocket *socket, const char *data, size_t size, const rtc::SocketAddress &remote_addr, const rtc::PacketTime &packet_time)
 
virtual bool SupportsProtocol (const std::string &protocol) const
 
virtual ProtocolType GetProtocol () const
 
void set_stun_keepalive_delay (int delay)
 
int stun_keepalive_delay () const
 
int stun_keepalive_lifetime () const
 
void set_stun_keepalive_lifetime (int lifetime)
 
bool HasPendingRequest (int msg_type)
 
virtual ~UDPPort ()
 
rtc::SocketAddress GetLocalAddress () const
 
const ServerAddressesserver_addresses () const
 
void set_server_addresses (const ServerAddresses &addresses)
 
virtual void PrepareAddress ()
 
virtual ConnectionCreateConnection (const Candidate &address, CandidateOrigin origin)
 
virtual int SetOption (rtc::Socket::Option opt, int value)
 
virtual int GetOption (rtc::Socket::Option opt, int *value)
 
virtual int GetError ()
 
virtual bool HandleIncomingPacket (rtc::AsyncPacketSocket *socket, const char *data, size_t size, const rtc::SocketAddress &remote_addr, const rtc::PacketTime &packet_time)
 
virtual bool SupportsProtocol (const std::string &protocol) const
 
virtual ProtocolType GetProtocol () const
 
void set_stun_keepalive_delay (int delay)
 
int stun_keepalive_delay () const
 
int stun_keepalive_lifetime () const
 
void set_stun_keepalive_lifetime (int lifetime)
 
bool HasPendingRequest (int msg_type)
 
- Public Member Functions inherited from cricket::Port
 Port (rtc::Thread *thread, const std::string &type, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, const std::string &username_fragment, const std::string &password)
 
 Port (rtc::Thread *thread, const std::string &type, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username_fragment, const std::string &password)
 
virtual ~Port ()
 
virtual const std::stringType () const
 
virtual rtc::NetworkNetwork () const
 
IceRole GetIceRole () const
 
void SetIceRole (IceRole role)
 
void SetIceTiebreaker (uint64_t tiebreaker)
 
uint64_t IceTiebreaker () const
 
virtual bool SharedSocket () const
 
void ResetSharedSocket ()
 
void KeepAliveUntilPruned ()
 
void Prune ()
 
rtc::Threadthread ()
 
rtc::PacketSocketFactorysocket_factory () const
 
void set_socket_factory (rtc::PacketSocketFactory *factory)
 
const std::stringcontent_name () const
 
void set_content_name (const std::string &content_name)
 
int component () const
 
void set_component (int component)
 
bool send_retransmit_count_attribute () const
 
void set_send_retransmit_count_attribute (bool enable)
 
uint32_t generation () const
 
void set_generation (uint32_t generation)
 
const std::string username_fragment () const
 
const std::stringpassword () const
 
void SetIceParameters (int component, const std::string &username_fragment, const std::string &password)
 
virtual const std::vector< Candidate > & Candidates () const
 
const AddressMapconnections ()
 
virtual ConnectionGetConnection (const rtc::SocketAddress &remote_addr)
 
virtual void SendBindingResponse (StunMessage *request, const rtc::SocketAddress &addr)
 
virtual void SendBindingErrorResponse (StunMessage *request, const rtc::SocketAddress &addr, int error_code, const std::string &reason)
 
void set_proxy (const std::string &user_agent, const rtc::ProxyInfo &proxy)
 
const std::stringuser_agent ()
 
const rtc::ProxyInfoproxy ()
 
virtual void EnablePortPackets ()
 
void Destroy ()
 
virtual void OnMessage (rtc::Message *pmsg)
 
virtual std::string ToString () const
 
const rtc::IPAddressip () const
 
uint16_t min_port ()
 
uint16_t max_port ()
 
void set_timeout_delay (int delay)
 
bool ParseStunUsername (const StunMessage *stun_msg, std::string *local_username, std::string *remote_username) const
 
void CreateStunUsername (const std::string &remote_username, std::string *stun_username_attr_str) const
 
bool MaybeIceRoleConflict (const rtc::SocketAddress &addr, IceMessage *stun_msg, const std::string &remote_ufrag)
 
void OnReadyToSend ()
 
size_t AddPrflxCandidate (const Candidate &local)
 
int16_t network_cost () const
 
 Port (rtc::Thread *thread, const std::string &type, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, const std::string &username_fragment, const std::string &password)
 
 Port (rtc::Thread *thread, const std::string &type, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username_fragment, const std::string &password)
 
virtual ~Port ()
 
virtual const std::stringType () const
 
virtual rtc::NetworkNetwork () const
 
IceRole GetIceRole () const
 
void SetIceRole (IceRole role)
 
void SetIceTiebreaker (uint64_t tiebreaker)
 
uint64_t IceTiebreaker () const
 
virtual bool SharedSocket () const
 
void ResetSharedSocket ()
 
void KeepAliveUntilPruned ()
 
void Prune ()
 
rtc::Threadthread ()
 
rtc::PacketSocketFactorysocket_factory () const
 
void set_socket_factory (rtc::PacketSocketFactory *factory)
 
const std::stringcontent_name () const
 
void set_content_name (const std::string &content_name)
 
int component () const
 
void set_component (int component)
 
bool send_retransmit_count_attribute () const
 
void set_send_retransmit_count_attribute (bool enable)
 
uint32_t generation () const
 
void set_generation (uint32_t generation)
 
const std::string username_fragment () const
 
const std::stringpassword () const
 
void SetIceParameters (int component, const std::string &username_fragment, const std::string &password)
 
virtual const std::vector< Candidate > & Candidates () const
 
const AddressMapconnections ()
 
virtual ConnectionGetConnection (const rtc::SocketAddress &remote_addr)
 
virtual void SendBindingResponse (StunMessage *request, const rtc::SocketAddress &addr)
 
virtual void SendBindingErrorResponse (StunMessage *request, const rtc::SocketAddress &addr, int error_code, const std::string &reason)
 
void set_proxy (const std::string &user_agent, const rtc::ProxyInfo &proxy)
 
const std::stringuser_agent ()
 
const rtc::ProxyInfoproxy ()
 
virtual void EnablePortPackets ()
 
void Destroy ()
 
virtual void OnMessage (rtc::Message *pmsg)
 
virtual std::string ToString () const
 
const rtc::IPAddressip () const
 
uint16_t min_port ()
 
uint16_t max_port ()
 
void set_timeout_delay (int delay)
 
bool ParseStunUsername (const StunMessage *stun_msg, std::string *local_username, std::string *remote_username) const
 
void CreateStunUsername (const std::string &remote_username, std::string *stun_username_attr_str) const
 
bool MaybeIceRoleConflict (const rtc::SocketAddress &addr, IceMessage *stun_msg, const std::string &remote_ufrag)
 
void OnReadyToSend ()
 
size_t AddPrflxCandidate (const Candidate &local)
 
int16_t network_cost () const
 
- Public Member Functions inherited from cricket::PortInterface
virtual ~PortInterface ()
 
virtual ~PortInterface ()
 
- 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 UDPPortCreate (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, rtc::AsyncPacketSocket *socket, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
static UDPPortCreate (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
static UDPPortCreate (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, rtc::AsyncPacketSocket *socket, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
static UDPPortCreate (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 

Protected Member Functions

 UDPPort (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
 UDPPort (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, rtc::AsyncPacketSocket *socket, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
bool Init ()
 
virtual int SendTo (const void *data, size_t size, const rtc::SocketAddress &addr, const rtc::PacketOptions &options, bool payload)
 
virtual void UpdateNetworkCost ()
 
void OnLocalAddressReady (rtc::AsyncPacketSocket *socket, const rtc::SocketAddress &address)
 
void OnReadPacket (rtc::AsyncPacketSocket *socket, const char *data, size_t size, const rtc::SocketAddress &remote_addr, const rtc::PacketTime &packet_time)
 
void OnSentPacket (rtc::AsyncPacketSocket *socket, const rtc::SentPacket &sent_packet)
 
void OnReadyToSend (rtc::AsyncPacketSocket *socket)
 
void MaybePrepareStunCandidate ()
 
void SendStunBindingRequests ()
 
bool MaybeSetDefaultLocalAddress (rtc::SocketAddress *addr) const
 
 UDPPort (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, const rtc::IPAddress &ip, uint16_t min_port, uint16_t max_port, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
 UDPPort (rtc::Thread *thread, rtc::PacketSocketFactory *factory, rtc::Network *network, rtc::AsyncPacketSocket *socket, const std::string &username, const std::string &password, const std::string &origin, bool emit_local_for_anyaddress)
 
bool Init ()
 
virtual int SendTo (const void *data, size_t size, const rtc::SocketAddress &addr, const rtc::PacketOptions &options, bool payload)
 
virtual void UpdateNetworkCost ()
 
void OnLocalAddressReady (rtc::AsyncPacketSocket *socket, const rtc::SocketAddress &address)
 
void OnReadPacket (rtc::AsyncPacketSocket *socket, const char *data, size_t size, const rtc::SocketAddress &remote_addr, const rtc::PacketTime &packet_time)
 
void OnSentPacket (rtc::AsyncPacketSocket *socket, const rtc::SentPacket &sent_packet)
 
void OnReadyToSend (rtc::AsyncPacketSocket *socket)
 
void MaybePrepareStunCandidate ()
 
void SendStunBindingRequests ()
 
bool MaybeSetDefaultLocalAddress (rtc::SocketAddress *addr) const
 
- Protected Member Functions inherited from cricket::Port
void set_type (const std::string &type)
 
void AddAddress (const rtc::SocketAddress &address, const rtc::SocketAddress &base_address, const rtc::SocketAddress &related_address, const std::string &protocol, const std::string &relay_protocol, const std::string &tcptype, const std::string &type, uint32_t type_preference, uint32_t relay_preference, bool final)
 
void AddAddress (const rtc::SocketAddress &address, const rtc::SocketAddress &base_address, const rtc::SocketAddress &related_address, const std::string &protocol, const std::string &relay_protocol, const std::string &tcptype, const std::string &type, uint32_t type_preference, uint32_t relay_preference, const std::string &url, bool final)
 
void AddOrReplaceConnection (Connection *conn)
 
void OnReadPacket (const char *data, size_t size, const rtc::SocketAddress &addr, ProtocolType proto)
 
bool GetStunMessage (const char *data, size_t size, const rtc::SocketAddress &addr, std::unique_ptr< IceMessage > *out_msg, std::string *out_username)
 
bool IsCompatibleAddress (const rtc::SocketAddress &addr)
 
rtc::DiffServCodePoint DefaultDscpValue () const
 
virtual void HandleConnectionDestroyed (Connection *)
 
void set_type (const std::string &type)
 
void AddAddress (const rtc::SocketAddress &address, const rtc::SocketAddress &base_address, const rtc::SocketAddress &related_address, const std::string &protocol, const std::string &relay_protocol, const std::string &tcptype, const std::string &type, uint32_t type_preference, uint32_t relay_preference, bool final)
 
void AddAddress (const rtc::SocketAddress &address, const rtc::SocketAddress &base_address, const rtc::SocketAddress &related_address, const std::string &protocol, const std::string &relay_protocol, const std::string &tcptype, const std::string &type, uint32_t type_preference, uint32_t relay_preference, const std::string &url, bool final)
 
void AddOrReplaceConnection (Connection *conn)
 
void OnReadPacket (const char *data, size_t size, const rtc::SocketAddress &addr, ProtocolType proto)
 
bool GetStunMessage (const char *data, size_t size, const rtc::SocketAddress &addr, std::unique_ptr< IceMessage > *out_msg, std::string *out_username)
 
bool IsCompatibleAddress (const rtc::SocketAddress &addr)
 
rtc::DiffServCodePoint DefaultDscpValue () const
 
virtual void HandleConnectionDestroyed (Connection *)
 
- Protected Member Functions inherited from cricket::PortInterface
 PortInterface ()
 
 PortInterface ()
 
- 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 ()
 

Friends

class StunBindingRequest
 

Additional Inherited Members

- Public Types inherited from cricket::Port
enum  State {
  State::INIT, State::KEEP_ALIVE_UNTIL_PRUNED, State::PRUNED, State::INIT,
  State::KEEP_ALIVE_UNTIL_PRUNED, State::PRUNED
}
 
enum  State {
  State::INIT, State::KEEP_ALIVE_UNTIL_PRUNED, State::PRUNED, State::INIT,
  State::KEEP_ALIVE_UNTIL_PRUNED, State::PRUNED
}
 
typedef std::map< rtc::SocketAddress, Connection * > AddressMap
 
typedef std::map< rtc::SocketAddress, Connection * > AddressMap
 
- Public Types inherited from cricket::PortInterface
enum  CandidateOrigin {
  ORIGIN_THIS_PORT, ORIGIN_OTHER_PORT, ORIGIN_MESSAGE, ORIGIN_THIS_PORT,
  ORIGIN_OTHER_PORT, ORIGIN_MESSAGE
}
 
enum  CandidateOrigin {
  ORIGIN_THIS_PORT, ORIGIN_OTHER_PORT, ORIGIN_MESSAGE, ORIGIN_THIS_PORT,
  ORIGIN_OTHER_PORT, ORIGIN_MESSAGE
}
 
- Public Attributes inherited from cricket::Port
sigslot::signal2< Port *, const Candidate & > SignalCandidateReady
 
sigslot::signal1< Port * > SignalPortComplete
 
sigslot::signal1< Port * > SignalPortError
 
sigslot::signal2< Port *, Connection * > SignalConnectionCreated
 
- Public Attributes inherited from cricket::PortInterface
sigslot::signal6< PortInterface *, const rtc::SocketAddress &, ProtocolType, IceMessage *, const std::string &, bool > SignalUnknownAddress
 
sigslot::signal1< PortInterface * > SignalDestroyed
 
sigslot::signal1< PortInterface * > SignalRoleConflict
 
sigslot::signal4< PortInterface *, const char *, size_t, const rtc::SocketAddress & > SignalReadPacket
 
sigslot::signal1< const rtc::SentPacket & > SignalSentPacket
 
- Protected Types inherited from cricket::Port
enum  { MSG_DESTROY_IF_DEAD = 0, MSG_FIRST_AVAILABLE }
 
enum  { MSG_DESTROY_IF_DEAD = 0, MSG_FIRST_AVAILABLE }
 

Constructor & Destructor Documentation

◆ ~UDPPort() [1/2]

cricket::UDPPort::~UDPPort ( )
virtual

◆ UDPPort() [1/4]

cricket::UDPPort::UDPPort ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
const rtc::IPAddress ip,
uint16_t  min_port,
uint16_t  max_port,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
protected

◆ UDPPort() [2/4]

cricket::UDPPort::UDPPort ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
rtc::AsyncPacketSocket socket,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
protected

◆ ~UDPPort() [2/2]

virtual cricket::UDPPort::~UDPPort ( )
virtual

◆ UDPPort() [3/4]

cricket::UDPPort::UDPPort ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
const rtc::IPAddress ip,
uint16_t  min_port,
uint16_t  max_port,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
protected

◆ UDPPort() [4/4]

cricket::UDPPort::UDPPort ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
rtc::AsyncPacketSocket socket,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
protected

Member Function Documentation

◆ Create() [1/4]

static UDPPort* cricket::UDPPort::Create ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
rtc::AsyncPacketSocket socket,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
inlinestatic

◆ Create() [2/4]

static UDPPort* cricket::UDPPort::Create ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
rtc::AsyncPacketSocket socket,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
inlinestatic

◆ Create() [3/4]

static UDPPort* cricket::UDPPort::Create ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
const rtc::IPAddress ip,
uint16_t  min_port,
uint16_t  max_port,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
inlinestatic

◆ Create() [4/4]

static UDPPort* cricket::UDPPort::Create ( rtc::Thread thread,
rtc::PacketSocketFactory factory,
rtc::Network network,
const rtc::IPAddress ip,
uint16_t  min_port,
uint16_t  max_port,
const std::string username,
const std::string password,
const std::string origin,
bool  emit_local_for_anyaddress 
)
inlinestatic

◆ CreateConnection() [1/2]

virtual Connection* cricket::UDPPort::CreateConnection ( const Candidate address,
CandidateOrigin  origin 
)
virtual

◆ CreateConnection() [2/2]

Connection * cricket::UDPPort::CreateConnection ( const Candidate address,
CandidateOrigin  origin 
)
virtual

◆ GetError() [1/2]

virtual int cricket::UDPPort::GetError ( )
virtual

◆ GetError() [2/2]

int cricket::UDPPort::GetError ( )
virtual

◆ GetLocalAddress() [1/2]

rtc::SocketAddress cricket::UDPPort::GetLocalAddress ( ) const
inline

◆ GetLocalAddress() [2/2]

rtc::SocketAddress cricket::UDPPort::GetLocalAddress ( ) const
inline

◆ GetOption() [1/2]

int cricket::UDPPort::GetOption ( rtc::Socket::Option  opt,
int *  value 
)
virtual

◆ GetOption() [2/2]

virtual int cricket::UDPPort::GetOption ( rtc::Socket::Option  opt,
int *  value 
)
virtual

◆ GetProtocol() [1/2]

virtual ProtocolType cricket::UDPPort::GetProtocol ( ) const
inlinevirtual

◆ GetProtocol() [2/2]

virtual ProtocolType cricket::UDPPort::GetProtocol ( ) const
inlinevirtual

◆ HandleIncomingPacket() [1/2]

virtual bool cricket::UDPPort::HandleIncomingPacket ( rtc::AsyncPacketSocket socket,
const char *  data,
size_t  size,
const rtc::SocketAddress remote_addr,
const rtc::PacketTime packet_time 
)
inlinevirtual

Reimplemented from cricket::Port.

◆ HandleIncomingPacket() [2/2]

virtual bool cricket::UDPPort::HandleIncomingPacket ( rtc::AsyncPacketSocket socket,
const char *  data,
size_t  size,
const rtc::SocketAddress remote_addr,
const rtc::PacketTime packet_time 
)
inlinevirtual

Reimplemented from cricket::Port.

◆ HasPendingRequest() [1/2]

bool cricket::UDPPort::HasPendingRequest ( int  msg_type)
inline

◆ HasPendingRequest() [2/2]

bool cricket::UDPPort::HasPendingRequest ( int  msg_type)
inline

◆ Init() [1/2]

bool cricket::UDPPort::Init ( )
protected

◆ Init() [2/2]

bool cricket::UDPPort::Init ( )
protected

◆ MaybePrepareStunCandidate() [1/2]

void cricket::UDPPort::MaybePrepareStunCandidate ( )
protected

◆ MaybePrepareStunCandidate() [2/2]

void cricket::UDPPort::MaybePrepareStunCandidate ( )
protected

◆ MaybeSetDefaultLocalAddress() [1/2]

bool cricket::UDPPort::MaybeSetDefaultLocalAddress ( rtc::SocketAddress addr) const
protected

◆ MaybeSetDefaultLocalAddress() [2/2]

bool cricket::UDPPort::MaybeSetDefaultLocalAddress ( rtc::SocketAddress addr) const
protected

◆ OnLocalAddressReady() [1/2]

void cricket::UDPPort::OnLocalAddressReady ( rtc::AsyncPacketSocket socket,
const rtc::SocketAddress address 
)
protected

◆ OnLocalAddressReady() [2/2]

void cricket::UDPPort::OnLocalAddressReady ( rtc::AsyncPacketSocket socket,
const rtc::SocketAddress address 
)
protected

◆ OnReadPacket() [1/2]

void cricket::UDPPort::OnReadPacket ( rtc::AsyncPacketSocket socket,
const char *  data,
size_t  size,
const rtc::SocketAddress remote_addr,
const rtc::PacketTime packet_time 
)
protected

◆ OnReadPacket() [2/2]

void cricket::UDPPort::OnReadPacket ( rtc::AsyncPacketSocket socket,
const char *  data,
size_t  size,
const rtc::SocketAddress remote_addr,
const rtc::PacketTime packet_time 
)
protected

◆ OnReadyToSend() [1/2]

void cricket::UDPPort::OnReadyToSend ( rtc::AsyncPacketSocket socket)
protected

◆ OnReadyToSend() [2/2]

void cricket::UDPPort::OnReadyToSend ( rtc::AsyncPacketSocket socket)
protected

◆ OnSentPacket() [1/2]

void cricket::UDPPort::OnSentPacket ( rtc::AsyncPacketSocket socket,
const rtc::SentPacket sent_packet 
)
protectedvirtual

Implements cricket::Port.

◆ OnSentPacket() [2/2]

void cricket::UDPPort::OnSentPacket ( rtc::AsyncPacketSocket socket,
const rtc::SentPacket sent_packet 
)
protectedvirtual

Implements cricket::Port.

◆ PrepareAddress() [1/2]

virtual void cricket::UDPPort::PrepareAddress ( )
virtual

Implements cricket::PortInterface.

Reimplemented in cricket::StunPort, and cricket::StunPort.

◆ PrepareAddress() [2/2]

void cricket::UDPPort::PrepareAddress ( )
virtual

Implements cricket::PortInterface.

Reimplemented in cricket::StunPort, and cricket::StunPort.

◆ SendStunBindingRequests() [1/2]

void cricket::UDPPort::SendStunBindingRequests ( )
protected

◆ SendStunBindingRequests() [2/2]

void cricket::UDPPort::SendStunBindingRequests ( )
protected

◆ SendTo() [1/2]

int cricket::UDPPort::SendTo ( const void data,
size_t  size,
const rtc::SocketAddress addr,
const rtc::PacketOptions options,
bool  payload 
)
protectedvirtual

◆ SendTo() [2/2]

virtual int cricket::UDPPort::SendTo ( const void data,
size_t  size,
const rtc::SocketAddress addr,
const rtc::PacketOptions options,
bool  payload 
)
protectedvirtual

◆ server_addresses() [1/2]

const ServerAddresses& cricket::UDPPort::server_addresses ( ) const
inline

◆ server_addresses() [2/2]

const ServerAddresses& cricket::UDPPort::server_addresses ( ) const
inline

◆ set_server_addresses() [1/2]

void cricket::UDPPort::set_server_addresses ( const ServerAddresses addresses)
inline

◆ set_server_addresses() [2/2]

void cricket::UDPPort::set_server_addresses ( const ServerAddresses addresses)
inline

◆ set_stun_keepalive_delay() [1/2]

void cricket::UDPPort::set_stun_keepalive_delay ( int  delay)
inline

◆ set_stun_keepalive_delay() [2/2]

void cricket::UDPPort::set_stun_keepalive_delay ( int  delay)
inline

◆ set_stun_keepalive_lifetime() [1/2]

void cricket::UDPPort::set_stun_keepalive_lifetime ( int  lifetime)
inline

◆ set_stun_keepalive_lifetime() [2/2]

void cricket::UDPPort::set_stun_keepalive_lifetime ( int  lifetime)
inline

◆ SetOption() [1/2]

int cricket::UDPPort::SetOption ( rtc::Socket::Option  opt,
int  value 
)
virtual

◆ SetOption() [2/2]

virtual int cricket::UDPPort::SetOption ( rtc::Socket::Option  opt,
int  value 
)
virtual

◆ stun_keepalive_delay() [1/2]

int cricket::UDPPort::stun_keepalive_delay ( ) const
inline

◆ stun_keepalive_delay() [2/2]

int cricket::UDPPort::stun_keepalive_delay ( ) const
inline

◆ stun_keepalive_lifetime() [1/2]

int cricket::UDPPort::stun_keepalive_lifetime ( ) const
inline

◆ stun_keepalive_lifetime() [2/2]

int cricket::UDPPort::stun_keepalive_lifetime ( ) const
inline

◆ SupportsProtocol() [1/2]

virtual bool cricket::UDPPort::SupportsProtocol ( const std::string protocol) const
inlinevirtual

◆ SupportsProtocol() [2/2]

virtual bool cricket::UDPPort::SupportsProtocol ( const std::string protocol) const
inlinevirtual

◆ UpdateNetworkCost() [1/2]

void cricket::UDPPort::UpdateNetworkCost ( )
protectedvirtual

Reimplemented from cricket::Port.

◆ UpdateNetworkCost() [2/2]

virtual void cricket::UDPPort::UpdateNetworkCost ( )
protectedvirtual

Reimplemented from cricket::Port.

Friends And Related Function Documentation

◆ StunBindingRequest


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