18 #ifndef _LOG4CXX_HELPERS_DATAGRAM_PACKET 19 #define _LOG4CXX_HELPERS_DATAGRAM_PACKET 67 DatagramPacket(
void* buf,
int length, InetAddressPtr address,
int port);
76 DatagramPacket(
void* buf,
int offset,
int length, InetAddressPtr address,
83 inline InetAddressPtr getAddress()
const 117 this->address = address1;
127 inline void setData(
void* buf1,
int offset1,
int length1)
130 this->offset = offset1;
131 this->length = length1;
137 this->length = length1;
156 #endif // _LOG4CXX_HELPERS_DATAGRAM_PACKET #define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:26
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:148
void * getData() const
Returns the data received or the data to be sent.
Definition: datagrampacket.h:89
int getOffset() const
Returns the offset of the data to be sent or the offset of the data received.
Definition: datagrampacket.h:103
int getLength() const
Returns the length of the data to be sent or the length of the data received.
Definition: datagrampacket.h:96
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:142
LOG4CXX_PTR_DEF(AppenderAttachableImpl)
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:136
int port
The UDP port number of the remote host.
Definition: datagrampacket.h:52
int offset
The offset of the data for this packet.
Definition: datagrampacket.h:43
int length
The length of the data for this packet.
Definition: datagrampacket.h:46
void setAddress(InetAddressPtr address1)
Definition: datagrampacket.h:115
void * buf
the data for this packet.
Definition: datagrampacket.h:40
int getPort() const
Returns the port number on the remote host to which this datagram is being sent or from which the dat...
Definition: datagrampacket.h:110
void setPort(int port1)
Definition: datagrampacket.h:140
base class for java-like objects.
Definition: object.h:101
void setLength(int length1)
Set the length for this packet.
Definition: datagrampacket.h:135
void setData(void *buf1)
Set the data buffer for this packet.
Definition: datagrampacket.h:121
This class represents a datagram packet.
Definition: datagrampacket.h:36
Definition: appender.h:32
void setData(void *buf1, int offset1, int length1)
Set the data buffer for this packet.
Definition: datagrampacket.h:127
InetAddressPtr address
The IP address for this packet.
Definition: datagrampacket.h:49