class Core::Sockets::UDPNetworkConnection

Overview

#include <coreudpconnection.h>

class UDPNetworkConnection
{
public:
    // methods

    bool init();
    void close();
    bool sendPacket(const IPAddress& dstIP, const uint8 buffer[], uint16 length);
    bool sendBroadcastPacket(uint16 port, const uint8 buffer[], uint16 length);
    bool processPackets(IUDPPacketReceiver* receiver, int timeout);
};

Detailed Documentation

Methods

bool processPackets(IUDPPacketReceiver* receiver, int timeout)

must not block longer than given timeout (ms)!