18 #ifndef _LOG4CXX_HELPERS_DATAGRAM_PACKET
19 #define _LOG4CXX_HELPERS_DATAGRAM_PACKET
40 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(DatagramPacketPriv, m_priv)
48 #if LOG4CXX_ABI_VERSION <= 15
75 DatagramPacket(
void* buf, std::size_t length, InetAddressPtr address,
int port);
84 DatagramPacket(
void* buf, std::size_t offset, std::size_t length, InetAddressPtr address,
97 #if LOG4CXX_ABI_VERSION <= 15
108 std::size_t getLength()
const;
112 std::size_t getOffset()
const;
124 #if LOG4CXX_ABI_VERSION <= 15
126 void setData(
void* buf1,
int offset1,
int length1);
132 void setData(
void* buf1, std::size_t offset1, std::size_t length1);
135 void setLength(std::size_t length1);
This class represents a datagram packet.
Definition: datagrampacket.h:38
void setLength(int length1)
Set the length for this packet.
DatagramPacket(void *buf, int offset, int length, InetAddressPtr address, int port)
Constructs a datagram packet for sending packets of length length with offset offset to the specified...
int getLength() const
Returns the length of the data to be sent or the length of the data received.
DatagramPacket(void *buf, int length)
Constructs a DatagramPacket for receiving packets of length length.
DatagramPacket(void *buf, int offset, int length)
Constructs a DatagramPacket for receiving packets of length length, specifying an offset into the buf...
void * getData() const
Returns the data received or the data to be sent.
int getOffset() const
Returns the offset of the data to be sent or the offset of the data received.
int getPort() const
Returns the port number on the remote host to which this datagram is being sent or from which the dat...
InetAddressPtr getAddress() const
Returns the IP address of the machine to which this datagram is being sent or from which the datagram...
void setData(void *buf1)
Set the data buffer for this packet.
void setData(void *buf1, int offset1, int length1)
Set the data buffer for this packet.
void setAddress(InetAddressPtr address1)
DatagramPacket(void *buf, int length, InetAddressPtr address, int port)
Constructs a datagram packet for sending packets of length length to the specified port number on the...
base class for java-like objects.
Definition: object.h:102
LOG4CXX_PTR_DEF(DatagramPacket)
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142