webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
webrtc::test::UdpSocketWrapper Class Referenceabstract

#include <udp_socket_wrapper.h>

Inheritance diagram for webrtc::test::UdpSocketWrapper:
webrtc::test::MockUdpSocketWrapper webrtc::test::UdpSocket2Windows webrtc::test::UdpSocket2Windows webrtc::test::UdpSocketPosix webrtc::test::UdpSocketPosix

Public Member Functions

virtual bool SetCallback (CallbackObj obj, IncomingSocketCallback cb)=0
 
virtual bool Bind (const SocketAddress &name)=0
 
virtual bool StartReceiving ()
 
virtual bool StartReceiving (const uint32_t)
 
virtual bool StopReceiving ()
 
virtual bool ValidHandle ()=0
 
virtual bool SetSockopt (int32_t level, int32_t optname, const int8_t *optval, int32_t optlen)=0
 
virtual int32_t SetTOS (const int32_t serviceType)=0
 
virtual int32_t SetPCP (const int32_t)
 
virtual int32_t SendTo (const int8_t *buf, size_t len, const SocketAddress &to)=0
 
virtual void SetEventToNull ()
 
virtual void CloseBlocking ()
 
virtual bool SetQos (int32_t serviceType, int32_t tokenRate, int32_t bucketSize, int32_t peekBandwith, int32_t minPolicedSize, int32_t maxSduSize, const SocketAddress &stRemName, int32_t overrideDSCP=0)=0
 
virtual uint32_t ReceiveBuffers ()
 
virtual bool SetCallback (CallbackObj obj, IncomingSocketCallback cb)=0
 
virtual bool Bind (const SocketAddress &name)=0
 
virtual bool StartReceiving ()
 
virtual bool StartReceiving (const uint32_t)
 
virtual bool StopReceiving ()
 
virtual bool ValidHandle ()=0
 
virtual bool SetSockopt (int32_t level, int32_t optname, const int8_t *optval, int32_t optlen)=0
 
virtual int32_t SetTOS (const int32_t serviceType)=0
 
virtual int32_t SetPCP (const int32_t)
 
virtual int32_t SendTo (const int8_t *buf, size_t len, const SocketAddress &to)=0
 
virtual void SetEventToNull ()
 
virtual void CloseBlocking ()
 
virtual bool SetQos (int32_t serviceType, int32_t tokenRate, int32_t bucketSize, int32_t peekBandwith, int32_t minPolicedSize, int32_t maxSduSize, const SocketAddress &stRemName, int32_t overrideDSCP=0)=0
 
virtual uint32_t ReceiveBuffers ()
 

Static Public Member Functions

static UdpSocketWrapperCreateSocket (const int32_t id, UdpSocketManager *mgr, CallbackObj obj, IncomingSocketCallback cb, bool ipV6Enable=false, bool disableGQOS=false)
 
static UdpSocketWrapperCreateSocket (const int32_t id, UdpSocketManager *mgr, CallbackObj obj, IncomingSocketCallback cb, bool ipV6Enable=false, bool disableGQOS=false)
 

Protected Member Functions

 UdpSocketWrapper ()
 
virtual ~UdpSocketWrapper ()
 
 UdpSocketWrapper ()
 
virtual ~UdpSocketWrapper ()
 

Protected Attributes

bool _wantsIncoming
 
EventWrapper_deleteEvent
 

Constructor & Destructor Documentation

◆ UdpSocketWrapper() [1/2]

webrtc::test::UdpSocketWrapper::UdpSocketWrapper ( )
protected

◆ ~UdpSocketWrapper() [1/2]

webrtc::test::UdpSocketWrapper::~UdpSocketWrapper ( )
protectedvirtual

◆ UdpSocketWrapper() [2/2]

webrtc::test::UdpSocketWrapper::UdpSocketWrapper ( )
protected

◆ ~UdpSocketWrapper() [2/2]

virtual webrtc::test::UdpSocketWrapper::~UdpSocketWrapper ( )
protectedvirtual

Member Function Documentation

◆ Bind() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::Bind ( const SocketAddress name)
pure virtual

◆ Bind() [2/2]

virtual bool webrtc::test::UdpSocketWrapper::Bind ( const SocketAddress name)
pure virtual

◆ CloseBlocking() [1/2]

virtual void webrtc::test::UdpSocketWrapper::CloseBlocking ( )
inlinevirtual

◆ CloseBlocking() [2/2]

virtual void webrtc::test::UdpSocketWrapper::CloseBlocking ( )
inlinevirtual

◆ CreateSocket() [1/2]

static UdpSocketWrapper* webrtc::test::UdpSocketWrapper::CreateSocket ( const int32_t  id,
UdpSocketManager mgr,
CallbackObj  obj,
IncomingSocketCallback  cb,
bool  ipV6Enable = false,
bool  disableGQOS = false 
)
static

◆ CreateSocket() [2/2]

UdpSocketWrapper * webrtc::test::UdpSocketWrapper::CreateSocket ( const int32_t  id,
UdpSocketManager mgr,
CallbackObj  obj,
IncomingSocketCallback  cb,
bool  ipV6Enable = false,
bool  disableGQOS = false 
)
static

◆ ReceiveBuffers() [1/2]

uint32_t webrtc::test::UdpSocketWrapper::ReceiveBuffers ( )
virtual

◆ ReceiveBuffers() [2/2]

virtual uint32_t webrtc::test::UdpSocketWrapper::ReceiveBuffers ( )
virtual

◆ SendTo() [1/2]

virtual int32_t webrtc::test::UdpSocketWrapper::SendTo ( const int8_t buf,
size_t  len,
const SocketAddress to 
)
pure virtual

◆ SendTo() [2/2]

virtual int32_t webrtc::test::UdpSocketWrapper::SendTo ( const int8_t buf,
size_t  len,
const SocketAddress to 
)
pure virtual

◆ SetCallback() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::SetCallback ( CallbackObj  obj,
IncomingSocketCallback  cb 
)
pure virtual

◆ SetCallback() [2/2]

virtual bool webrtc::test::UdpSocketWrapper::SetCallback ( CallbackObj  obj,
IncomingSocketCallback  cb 
)
pure virtual

◆ SetEventToNull() [1/2]

virtual void webrtc::test::UdpSocketWrapper::SetEventToNull ( )
virtual

◆ SetEventToNull() [2/2]

void webrtc::test::UdpSocketWrapper::SetEventToNull ( )
virtual

◆ SetPCP() [1/2]

int32_t webrtc::test::UdpSocketWrapper::SetPCP ( const int32_t  )
virtual

◆ SetPCP() [2/2]

virtual int32_t webrtc::test::UdpSocketWrapper::SetPCP ( const int32_t  )
virtual

◆ SetQos() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::SetQos ( int32_t  serviceType,
int32_t  tokenRate,
int32_t  bucketSize,
int32_t  peekBandwith,
int32_t  minPolicedSize,
int32_t  maxSduSize,
const SocketAddress stRemName,
int32_t  overrideDSCP = 0 
)
pure virtual

◆ SetQos() [2/2]

virtual bool webrtc::test::UdpSocketWrapper::SetQos ( int32_t  serviceType,
int32_t  tokenRate,
int32_t  bucketSize,
int32_t  peekBandwith,
int32_t  minPolicedSize,
int32_t  maxSduSize,
const SocketAddress stRemName,
int32_t  overrideDSCP = 0 
)
pure virtual

◆ SetSockopt() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::SetSockopt ( int32_t  level,
int32_t  optname,
const int8_t optval,
int32_t  optlen 
)
pure virtual

◆ SetSockopt() [2/2]

virtual bool webrtc::test::UdpSocketWrapper::SetSockopt ( int32_t  level,
int32_t  optname,
const int8_t optval,
int32_t  optlen 
)
pure virtual

◆ SetTOS() [1/2]

virtual int32_t webrtc::test::UdpSocketWrapper::SetTOS ( const int32_t  serviceType)
pure virtual

◆ SetTOS() [2/2]

virtual int32_t webrtc::test::UdpSocketWrapper::SetTOS ( const int32_t  serviceType)
pure virtual

◆ StartReceiving() [1/4]

virtual bool webrtc::test::UdpSocketWrapper::StartReceiving ( )
virtual

◆ StartReceiving() [2/4]

bool webrtc::test::UdpSocketWrapper::StartReceiving ( )
virtual

◆ StartReceiving() [3/4]

bool webrtc::test::UdpSocketWrapper::StartReceiving ( const uint32_t  )
virtual

◆ StartReceiving() [4/4]

virtual bool webrtc::test::UdpSocketWrapper::StartReceiving ( const uint32_t  )
virtual

◆ StopReceiving() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::StopReceiving ( )
virtual

◆ StopReceiving() [2/2]

bool webrtc::test::UdpSocketWrapper::StopReceiving ( )
virtual

◆ ValidHandle() [1/2]

virtual bool webrtc::test::UdpSocketWrapper::ValidHandle ( )
pure virtual

◆ ValidHandle() [2/2]

virtual bool webrtc::test::UdpSocketWrapper::ValidHandle ( )
pure virtual

Member Data Documentation

◆ _deleteEvent

EventWrapper * webrtc::test::UdpSocketWrapper::_deleteEvent
protected

◆ _wantsIncoming

bool webrtc::test::UdpSocketWrapper::_wantsIncoming
protected

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