class IUDPEndpoint

Library: IoT/UDP
Package: Generated
Header: IoT/UDP/IUDPEndpoint.h


The UDPEndpoint is used to receive and send UDP packets.


Direct Base Classes: Poco::OSP::Service

All Base Classes: Poco::OSP::Service, Poco::RefCountedObject

Known Derived Classes: UDPEndpointRemoteObject

Member Summary

Member Functions: address, isA, remoting__enableEvents, remoting__typeId, sendPacket, type

Inherited Functions: duplicate, isA, referenceCount, release, type

Types Aliases


using Ptr = Poco::AutoPtr < IUDPEndpoint >;




Creates a IUDPEndpoint.


~IUDPEndpoint virtual

virtual ~IUDPEndpoint();

Destroys the IUDPEndpoint.

Member Functions

address virtual

virtual IoT::UDP::EndpointAddress address() const = 0;

Returns the socket address of this endpoint.

isA virtual

bool isA(
    const std::type_info & otherType
) const;

Returns true if the class is a subclass of the class given by otherType.

remoting__enableEvents virtual

virtual std::string remoting__enableEvents(
    Poco::RemotingNG::Listener::Ptr pListener,
    bool enable = bool (true)
) = 0;

Enable or disable delivery of remote events.

The given Listener instance must implement the Poco::RemotingNG::EventListener interface, otherwise this method will fail with a RemotingException.

This method is only used with Proxy objects; calling this method on a RemoteObject will do nothing.

remoting__typeId static

static const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId();

Returns the TypeId of the class.

sendPacket virtual

virtual void sendPacket(
    const std::vector < char > & payload,
    const IoT::UDP::EndpointAddress & destination = IoT::UDP::EndpointAddress ()
) = 0;

Sends the given payload to the given destination address.

If the endpoint is connected to a default destination address, the destination address can be omitted.

type virtual

const std::type_info & type() const;

Returns the type information for the object's class.



Poco::BasicEvent < const Packet > packetReceived;

Securely control IoT edge devices from anywhere   Connect a Device