webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
rtc::AsyncSocket Class Referenceabstract

#include <asyncsocket.h>

Inheritance diagram for rtc::AsyncSocket:
rtc::Socket rtc::Socket rtc::AsyncSocketAdapter rtc::AsyncSocketAdapter rtc::NATSocket rtc::PhysicalSocket rtc::PhysicalSocket rtc::VirtualSocket rtc::VirtualSocket rtc::BufferedReadAdapter rtc::BufferedReadAdapter rtc::FirewallSocket rtc::SSLAdapter rtc::SSLAdapter rtc::BufferedReadAdapter rtc::BufferedReadAdapter rtc::FirewallSocket rtc::SSLAdapter rtc::SSLAdapter rtc::SocketDispatcher rtc::SocketDispatcher rtc::SocketDispatcher rtc::SocketDispatcher

Public Member Functions

 AsyncSocket ()
 
 ~AsyncSocket () override
 
AsyncSocketAccept (SocketAddress *paddr) override=0
 
 AsyncSocket ()
 
 ~AsyncSocket () override
 
AsyncSocketAccept (SocketAddress *paddr) override=0
 
- Public Member Functions inherited from rtc::Socket
virtual ~Socket ()
 
virtual SocketAddress GetLocalAddress () const =0
 
virtual SocketAddress GetRemoteAddress () const =0
 
virtual int Bind (const SocketAddress &addr)=0
 
virtual int Connect (const SocketAddress &addr)=0
 
virtual int Send (const void *pv, size_t cb)=0
 
virtual int SendTo (const void *pv, size_t cb, const SocketAddress &addr)=0
 
virtual int Recv (void *pv, size_t cb, int64_t *timestamp)=0
 
virtual int RecvFrom (void *pv, size_t cb, SocketAddress *paddr, int64_t *timestamp)=0
 
virtual int Listen (int backlog)=0
 
virtual int Close ()=0
 
virtual int GetError () const =0
 
virtual void SetError (int error)=0
 
bool IsBlocking () const
 
virtual ConnState GetState () const =0
 
virtual int EstimateMTU (uint16_t *mtu)=0
 
virtual int GetOption (Option opt, int *value)=0
 
virtual int SetOption (Option opt, int value)=0
 
virtual ~Socket ()
 
virtual SocketAddress GetLocalAddress () const =0
 
virtual SocketAddress GetRemoteAddress () const =0
 
virtual int Bind (const SocketAddress &addr)=0
 
virtual int Connect (const SocketAddress &addr)=0
 
virtual int Send (const void *pv, size_t cb)=0
 
virtual int SendTo (const void *pv, size_t cb, const SocketAddress &addr)=0
 
virtual int Recv (void *pv, size_t cb, int64_t *timestamp)=0
 
virtual int RecvFrom (void *pv, size_t cb, SocketAddress *paddr, int64_t *timestamp)=0
 
virtual int Listen (int backlog)=0
 
virtual int Close ()=0
 
virtual int GetError () const =0
 
virtual void SetError (int error)=0
 
bool IsBlocking () const
 
virtual ConnState GetState () const =0
 
virtual int EstimateMTU (uint16_t *mtu)=0
 
virtual int GetOption (Option opt, int *value)=0
 
virtual int SetOption (Option opt, int value)=0
 

Public Attributes

sigslot::signal1< AsyncSocket *, sigslot::multi_threaded_local > SignalReadEvent
 
sigslot::signal1< AsyncSocket *, sigslot::multi_threaded_local > SignalWriteEvent
 
sigslot::signal1< AsyncSocket * > SignalConnectEvent
 
sigslot::signal2< AsyncSocket *, int > SignalCloseEvent
 

Additional Inherited Members

- Public Types inherited from rtc::Socket
enum  ConnState {
  CS_CLOSED, CS_CONNECTING, CS_CONNECTED, CS_CLOSED,
  CS_CONNECTING, CS_CONNECTED
}
 
enum  Option {
  OPT_DONTFRAGMENT, OPT_RCVBUF, OPT_SNDBUF, OPT_NODELAY,
  OPT_IPV6_V6ONLY, OPT_DSCP, OPT_RTP_SENDTIME_EXTN_ID, OPT_DONTFRAGMENT,
  OPT_RCVBUF, OPT_SNDBUF, OPT_NODELAY, OPT_IPV6_V6ONLY,
  OPT_DSCP, OPT_RTP_SENDTIME_EXTN_ID
}
 
enum  ConnState {
  CS_CLOSED, CS_CONNECTING, CS_CONNECTED, CS_CLOSED,
  CS_CONNECTING, CS_CONNECTED
}
 
enum  Option {
  OPT_DONTFRAGMENT, OPT_RCVBUF, OPT_SNDBUF, OPT_NODELAY,
  OPT_IPV6_V6ONLY, OPT_DSCP, OPT_RTP_SENDTIME_EXTN_ID, OPT_DONTFRAGMENT,
  OPT_RCVBUF, OPT_SNDBUF, OPT_NODELAY, OPT_IPV6_V6ONLY,
  OPT_DSCP, OPT_RTP_SENDTIME_EXTN_ID
}
 
- Protected Member Functions inherited from rtc::Socket
 Socket ()
 
 Socket ()
 

Constructor & Destructor Documentation

◆ AsyncSocket() [1/2]

rtc::AsyncSocket::AsyncSocket ( )

◆ ~AsyncSocket() [1/2]

rtc::AsyncSocket::~AsyncSocket ( )
override

◆ AsyncSocket() [2/2]

rtc::AsyncSocket::AsyncSocket ( )

◆ ~AsyncSocket() [2/2]

rtc::AsyncSocket::~AsyncSocket ( )
override

Member Function Documentation

◆ Accept() [1/2]

AsyncSocket* rtc::AsyncSocket::Accept ( SocketAddress paddr)
overridepure virtual

◆ Accept() [2/2]

AsyncSocket* rtc::AsyncSocket::Accept ( SocketAddress paddr)
overridepure virtual

Member Data Documentation

◆ SignalCloseEvent

sigslot::signal2< AsyncSocket *, int > rtc::AsyncSocket::SignalCloseEvent

◆ SignalConnectEvent

sigslot::signal1< AsyncSocket * > rtc::AsyncSocket::SignalConnectEvent

◆ SignalReadEvent

sigslot::signal1< AsyncSocket *, sigslot::multi_threaded_local > rtc::AsyncSocket::SignalReadEvent

◆ SignalWriteEvent

sigslot::signal1< AsyncSocket *, sigslot::multi_threaded_local > rtc::AsyncSocket::SignalWriteEvent

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