The Micro C++ Library
|
An InetDatagram represents an UDP Internet Protocol (IP) specific Datagram. More...
#include <micxx.hxx>
Inherits micxx::Datagram.
Public Member Functions | |
InetDatagram (std::size_t size=0) | |
Create an empty InetDatagram with initial size and capacity size, a default source and a default destination address. | |
virtual void | setDstAddress (const SocketAddress *adstAddress) |
Set the destination address to a copy of adstAddress, but only if adstAddress points to an InetAddress instance. | |
virtual void | setSrcAddress (const SocketAddress *asrcAddress) |
Set the source address to a copy of asrcAddress, but only if asrcAddress points to an InetAddress instance. |
An InetDatagram represents an UDP Internet Protocol (IP) specific Datagram.
micxx::InetDatagram::InetDatagram | ( | std::size_t | size = 0 | ) |
Create an empty InetDatagram with initial size and capacity size, a default source and a default destination address.
size | The initial size and capacity. |
virtual void micxx::InetDatagram::setDstAddress | ( | const SocketAddress * | adstAddress | ) | [virtual] |
Set the destination address to a copy of adstAddress, but only if adstAddress points to an InetAddress instance.
Reimplemented from micxx::Datagram.
virtual void micxx::InetDatagram::setSrcAddress | ( | const SocketAddress * | asrcAddress | ) | [virtual] |
Set the source address to a copy of asrcAddress, but only if asrcAddress points to an InetAddress instance.
Reimplemented from micxx::Datagram.