IoT::UDP

class UDPEndpointImpl

Library: IoT/UDP
Package: UDPEndpoint
Header: IoT/UDP/UDPEndpointImpl.h

Description

The default implementation of UDPEndpoint

Inheritance

Direct Base Classes: UDPEndpoint

All Base Classes: UDPEndpoint

Member Summary

Member Functions: address, connect, handlePackets, sendPacket, socket

Inherited Functions: address, sendPacket

Types

Ptr

typedef Poco::SharedPtr < UDPEndpointImpl > Ptr;

Enumerations

Anonymous protected

MAX_MESSAGE_SIZE = 4096

POLL_TIMEOUT = 200000

Constructors

UDPEndpointImpl

UDPEndpointImpl(
    const Poco::Net::SocketAddress & addr
);

Creates the UDPEndpointImpl using the given socket address.

Destructor

~UDPEndpointImpl virtual

~UDPEndpointImpl();

Destroys the UDPEndpointImpl.

Member Functions

address virtual

EndpointAddress address() const;

connect

void connect(
    const Poco::Net::SocketAddress & addr
);

Connects the socket to the given address.

sendPacket virtual

void sendPacket(
    const std::vector < char > & payload,
    const EndpointAddress & destination
);

socket inline

const Poco::Net::DatagramSocket & socket() const;

Returns the underlying socket.

socket

Poco::Net::DatagramSocket & socket();

Returns the underlying socket.

handlePackets protected

void handlePackets();

Securely control IoT edge devices from anywhere   Connect a Device