Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
SOCKETS::CUDPSocket Class Referenceabstract

#include <Socket.h>

Inheritance diagram for SOCKETS::CUDPSocket:
SOCKETS::CBaseSocket SOCKETS::CPosixUDPSocket

Public Member Functions

 CUDPSocket ()
 
virtual int SendTo (const CAddress &addr, const int bufferlength, const void *buffer)=0
 
virtual int Read (CAddress &addr, const int buffersize, void *buffer)=0
 
virtual bool Broadcast (const CAddress &addr, const int datasize, const void *data)=0
 
- Public Member Functions inherited from SOCKETS::CBaseSocket
 CBaseSocket ()
 
virtual ~CBaseSocket ()
 
virtual bool Bind (bool localOnly, int port, int range=0)=0
 
virtual bool Connect ()=0
 
virtual void Close ()
 
bool Ready ()
 
bool Bound ()
 
SocketType Type ()
 
int Port ()
 
virtual SOCKET Socket ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from SOCKETS::CBaseSocket
virtual void SetBound (bool set=true)
 
virtual void SetReady (bool set=true)
 
- Protected Attributes inherited from SOCKETS::CBaseSocket
SocketType m_Type
 
bool m_bReady
 
bool m_bBound
 
int m_iPort
 

Constructor & Destructor Documentation

◆ CUDPSocket()

SOCKETS::CUDPSocket::CUDPSocket ( )
inline

Member Function Documentation

◆ Broadcast()

virtual bool SOCKETS::CUDPSocket::Broadcast ( const CAddress & addr,
const int datasize,
const void * data )
pure virtual

Implemented in SOCKETS::CPosixUDPSocket.

◆ Read()

virtual int SOCKETS::CUDPSocket::Read ( CAddress & addr,
const int buffersize,
void * buffer )
pure virtual

Implemented in SOCKETS::CPosixUDPSocket.

◆ SendTo()

virtual int SOCKETS::CUDPSocket::SendTo ( const CAddress & addr,
const int bufferlength,
const void * buffer )
pure virtual

Implemented in SOCKETS::CPosixUDPSocket.


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