Class UdpSocket

Inheritance Relationships

Base Type

Class Documentation

class UdpSocket : public O3DS::Socket

Public Functions

UdpSocket()
UdpSocket(int s)
~UdpSocket()
virtual void CreateSocket() override
void SetDestination(const char*, unsigned short port)

Set broadcast destination - stored in m_sendDest.

Socket must be UDP

void SetDestination(struct sockaddr_in &in, unsigned short port)

Set broadcast destination - stored in m_sendDest.

Socket must be UDP

void SendTo(const void *data, size_t len)

Send a datagram to the destination specified by SetDestination().

uses m_sendDest as desination Socket must be UDP

size_t GetDatagram(char *buf, int len)

Public Members

SocketAddress m_sendDest
SocketAddress m_from