18#ifndef _LOG4CXX_HELPERS_DATAGRAM_PACKET
19#define _LOG4CXX_HELPERS_DATAGRAM_PACKET
39 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(DatagramPacketPriv, m_priv)
93 void setData(
void* buf1,
int offset1,
int length1);
This class represents a datagram packet.
Definition datagrampacket.h:37
void setLength(int length1)
Set the length for this packet.
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.
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...
void * getData() const
Returns the data received or the data to be sent.
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 setAddress(InetAddressPtr address1)
base class for java-like objects.
Definition object.h:106
#define LOG4CXX_CAST_ENTRY(Interface)
Definition object.h:158
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition object.h:39
#define END_LOG4CXX_CAST_MAP()
Definition object.h:152
#define BEGIN_LOG4CXX_CAST_MAP()
Definition object.h:146