File Information
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, remoteAddress, sendPacket, socket
Inherited Functions: address, remoteAddress, sendPacket
Types Aliases
Ptr
using Ptr = Poco::SharedPtr < UDPEndpointImpl >;
Enumerations
Anonymous
MAX_MESSAGE_SIZE = 4096
POLL_TIMEOUT = 200000
Constructors
UDPEndpointImpl
UDPEndpointImpl(
const Poco::Net::SocketAddress & addr
);
Creates the UDPEndpointImpl using the given local socket address.
The endpoint's socket is bound to the given address.
Destructor
~UDPEndpointImpl
~UDPEndpointImpl();
Destroys the UDPEndpointImpl.
Member Functions
address
EndpointAddress address() const;
See also: IoT::UDP::UDPEndpoint::address()
connect
void connect(
const Poco::Net::SocketAddress & addr
);
Connects the socket to the given address.
remoteAddress
Poco::Nullable < EndpointAddress > remoteAddress() const;
See also: IoT::UDP::UDPEndpoint::remoteAddress()
sendPacket
void sendPacket(
const std::vector < char > & payload,
const EndpointAddress & destination
);
See also: IoT::UDP::UDPEndpoint::sendPacket()
socket
const Poco::Net::DatagramSocket & socket() const;
Returns the underlying socket.
socket
Poco::Net::DatagramSocket & socket();
Returns the underlying socket.
handlePackets
void handlePackets();