#include <address.h>
Inheritance diagram for UdpAddress:
Public Member Functions | |
| UdpAddress () | |
| Construct an empty invalid UDP address. | |
| UdpAddress (const char *inaddr) | |
| Construct an UDP address from a string. | |
| UdpAddress (const UdpAddress &udpaddr) | |
| Construct an UDP address from another UDP address. | |
| UdpAddress (const GenAddress &genaddr) | |
| Construct an UDP address from a GenAddress. | |
| UdpAddress (const IpAddress &ipaddr) | |
| Construct an UDP address from a IP address. | |
| ~UdpAddress () | |
| Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden). | |
| SnmpSyntax & | operator= (const SnmpSyntax &val) |
| Map other SnmpSyntax objects to UdpAddress. | |
| UdpAddress & | operator= (const UdpAddress &udpaddr) |
| Overloaded assignment operator for UdpAddress. | |
| UdpAddress & | operator= (const IpAddress &ipaddr) |
| Overloaded assignment operator for IpAddress. | |
| UdpAddress & | operator= (const char *inaddr) |
| Overloaded assignment operator for strings. | |
| SmiUINT32 | get_syntax () const |
| Return the syntax. | |
| virtual int | get_asn1_length () const |
| Return the space needed for serialization. | |
| SnmpSyntax * | clone () const |
| Clone this object. | |
| virtual const char * | get_printable () const |
| Get a printable ASCII value of the address. | |
| virtual | operator const char * () const |
| Overloaded operator for streaming output. | |
| void | set_port (const unsigned short p) |
| Set the port number. | |
| unsigned short | get_port () const |
| Get the port number. | |
| virtual int | get_length () const |
| Get the length of the binary address (accessible through operator[]). | |
| virtual addr_type | get_type () const |
| Return the type of the address. | |
| virtual int | map_to_ipv6 () |
| Map a IPv4 UDP address to a IPv6 UDP address. | |
| void | clear () |
| Reset the object. | |
Protected Member Functions | |
| virtual bool | parse_address (const char *inaddr) |
| virtual void | format_output () const |
Protected Attributes | |
| char | output_buffer [OUTBUFF] |
| char | sep |
|
|
Construct an empty invalid UDP address.
|
|
|
Construct an UDP address from a string. The following formats can be used additional to those recognized by IpAdress:
|
|
|
Construct an UDP address from another UDP address.
|
|
|
Construct an UDP address from a GenAddress.
|
|
|
Construct an UDP address from a IP address. The port will be set to 0.
|
|
|
Destructor (ensure that SnmpSyntax::~SnmpSyntax() is overridden).
|
|
|
Reset the object.
Reimplemented from IpAddress. Definition at line 622 of file address.h. References Address::clear(). |
|
|
Clone this object.
Reimplemented from IpAddress. |
|
|
Reimplemented from IpAddress. |
|
|
Return the space needed for serialization.
Reimplemented from IpAddress. |
|
|
Get the length of the binary address (accessible through operator[]).
Reimplemented from IpAddress. |
|
|
Get the port number.
|
|
|
Get a printable ASCII value of the address.
Reimplemented from IpAddress. |
|
|
Return the syntax.
Reimplemented from IpAddress. Definition at line 554 of file address.h. References SmiUINT32, and sNMP_SYNTAX_OCTETS. |
|
|
Return the type of the address.
Reimplemented from IpAddress. |
|
|
Map a IPv4 UDP address to a IPv6 UDP address.
Reimplemented from IpAddress. |
|
|
Overloaded operator for streaming output.
Reimplemented from IpAddress. |
|
|
Overloaded assignment operator for strings.
Reimplemented from IpAddress. |
|
|
Overloaded assignment operator for IpAddress.
Reimplemented from IpAddress. |
|
|
Overloaded assignment operator for UdpAddress.
|
|
|
Map other SnmpSyntax objects to UdpAddress.
Reimplemented from IpAddress. |
|
|
Reimplemented from IpAddress. |
|
|
Set the port number.
|
|
|
Reimplemented from IpAddress. |
|
|
|
1.3.2