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

#include <Socket.h>

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

Public Member Functions

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

Protected Attributes

SOCKET m_iSock
 
CAddress m_addr
 
- Protected Attributes inherited from SOCKETS::CBaseSocket
SocketType m_Type
 
bool m_bReady
 
bool m_bBound
 
int m_iPort
 

Additional Inherited Members

- Protected Member Functions inherited from SOCKETS::CBaseSocket
virtual void SetBound (bool set=true)
 
virtual void SetReady (bool set=true)
 

Constructor & Destructor Documentation

◆ CPosixUDPSocket()

SOCKETS::CPosixUDPSocket::CPosixUDPSocket ( )
inline

Member Function Documentation

◆ Bind()

bool CPosixUDPSocket::Bind ( bool localOnly,
int port,
int range = 0 )
overridevirtual

Implements SOCKETS::CBaseSocket.

◆ Broadcast()

bool SOCKETS::CPosixUDPSocket::Broadcast ( const CAddress & addr,
const int datasize,
const void * data )
inlineoverridevirtual
Todo
implement

Implements SOCKETS::CUDPSocket.

◆ Close()

void CPosixUDPSocket::Close ( )
overridevirtual

Reimplemented from SOCKETS::CBaseSocket.

◆ Connect()

bool SOCKETS::CPosixUDPSocket::Connect ( )
inlineoverridevirtual

Implements SOCKETS::CBaseSocket.

◆ Listen()

bool SOCKETS::CPosixUDPSocket::Listen ( int timeout)

◆ Read()

int CPosixUDPSocket::Read ( CAddress & addr,
const int buffersize,
void * buffer )
overridevirtual

Implements SOCKETS::CUDPSocket.

◆ SendTo()

int CPosixUDPSocket::SendTo ( const CAddress & addr,
const int datasize,
const void * data )
overridevirtual

Implements SOCKETS::CUDPSocket.

◆ Socket()

SOCKET SOCKETS::CPosixUDPSocket::Socket ( )
inlineoverridevirtual

Implements SOCKETS::CBaseSocket.

Member Data Documentation

◆ m_addr

CAddress SOCKETS::CPosixUDPSocket::m_addr
protected

◆ m_iSock

SOCKET SOCKETS::CPosixUDPSocket::m_iSock
protected

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