|
OpenJAUS Software Development Kit
4.3.1
|
This is a brief description. More...
#include <DatagramSocket.h>
Inherits openjaus::system::Socket.
Public Member Functions | |
| DatagramSocket () | |
| virtual | ~DatagramSocket () |
| DatagramSocket (InetAddress ipAddress, short port) | |
| bool | open (InetAddress ipAddress, short port) |
| Operation open. More... | |
| int | send (Packet &packet) |
| Operation send. More... | |
| int | receive (Packet &packet) |
| Operation receive. More... | |
| bool | reuseAddress (bool enabled) |
| Operation reuseAddress. More... | |
| bool | enableBroadcast (bool enabled) |
| Operation enableBroadcast. More... | |
| bool | setBufferSize (uint32_t size) |
| Sets the size of the UDP Send & Recv buffers. More... | |
| virtual std::string | toString () const |
| bool | isOpened () const |
Public Member Functions inherited from openjaus::system::Socket | |
| Socket () | |
| virtual | ~Socket () |
| bool | isBlocking () const |
| Accessor to get the value of blocking. More... | |
| uint16_t | getPort () const |
| Accessor to get the value of port. More... | |
| int | getDescriptor () const |
| Accessor to get the value of descriptor. More... | |
| const InetAddress & | getIpAddress () const |
| Accessor to get the value of ipAddress. More... | |
| const Time & | getTimeout () const |
| Accessor to get the value of timeout. More... | |
| bool | setTimeout (const Time &timeout) |
| Accessor to set value of timeout. More... | |
| const std::vector< NetworkInterface *> & | getInterfaces () const |
| Accessor to get the value of interfaces. More... | |
| void | readInterfaces () |
| Operation readInterfaces. More... | |
| bool | isLocalAddress (const InetAddress &ipAddress) |
| Operation isLocalAddress. More... | |
| uint64_t | addressHash () |
| Operation addressHash. More... | |
Protected Attributes | |
| bool | opened |
Protected Attributes inherited from openjaus::system::Socket | |
| bool | blocking |
| uint16_t | port |
| int | descriptor |
| InetAddress | ipAddress |
| Time | timeout |
| std::vector< NetworkInterface *> | interfaces |
Friends | |
| OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const DatagramSocket &object) |
| OPENJAUS_EXPORT friend std::ostream & | operator<< (std::ostream &output, const DatagramSocket *object) |
Additional Inherited Members | |
Static Public Member Functions inherited from openjaus::system::Socket | |
| static std::vector< NetworkInterface > | lookupInterfaces () |
Static Protected Member Functions inherited from openjaus::system::Socket | |
| static void | initialize () |
| static void | deinitialize () |
Static Protected Attributes inherited from openjaus::system::Socket | |
| static int | descriptorCount = 0 |
Detailed description.
| openjaus::system::DatagramSocket::DatagramSocket | ( | ) |
|
virtual |
| openjaus::system::DatagramSocket::DatagramSocket | ( | InetAddress | ipAddress, |
| short | port | ||
| ) |
| bool openjaus::system::DatagramSocket::enableBroadcast | ( | bool | enabled | ) |
| enabled |
| bool openjaus::system::DatagramSocket::isOpened | ( | ) | const |
| bool openjaus::system::DatagramSocket::open | ( | InetAddress | ipAddress, |
| short | port | ||
| ) |
| ipAddress | |
| port |
|
virtual |
| packet |
Implements openjaus::system::Socket.
| bool openjaus::system::DatagramSocket::reuseAddress | ( | bool | enabled | ) |
| enabled |
|
virtual |
| packet |
Implements openjaus::system::Socket.
| bool openjaus::system::DatagramSocket::setBufferSize | ( | uint32_t | size | ) |
| size |
|
virtual |
Reimplemented from openjaus::system::Socket.
|
friend |
|
friend |
|
protected |