18 #ifndef _LOG4CXX_HELPERS_DATAGRAM_PACKET 19 #define _LOG4CXX_HELPERS_DATAGRAM_PACKET 21 #include <log4cxx/helpers/objectimpl.h> 22 #include <log4cxx/helpers/objectptr.h> 23 #include <log4cxx/helpers/inetaddress.h> 57 BEGIN_LOG4CXX_CAST_MAP()
59 END_LOG4CXX_CAST_MAP()
68 DatagramPacket(
void* buf,
int length, InetAddressPtr address,
int port);
77 DatagramPacket(
void* buf,
int offset,
int length, InetAddressPtr address,
84 inline InetAddressPtr getAddress()
const 116 inline void setAddress(InetAddressPtr address1)
118 this->address = address1;
128 inline void setData(
void* buf1,
int offset1,
int length1)
131 this->offset = offset1;
132 this->length = length1;
138 this->length = length1;
141 inline void setPort(
int port1)
157 #endif // _LOG4CXX_HELPERS_DATAGRAM_PACKET void * getData() const
Returns the data received or the data to be sent.
Definition: datagrampacket.h:90
int getOffset() const
Returns the offset of the data to be sent or the offset of the data received.
Definition: datagrampacket.h:104
int getLength() const
Returns the length of the data to be sent or the length of the data received.
Definition: datagrampacket.h:97
int port
The UDP port number of the remote host.
Definition: datagrampacket.h:53
int offset
The offset of the data for this packet.
Definition: datagrampacket.h:44
int length
The length of the data for this packet.
Definition: datagrampacket.h:47
void * buf
the data for this packet.
Definition: datagrampacket.h:41
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:111
Implementation class for Object.
Definition: objectimpl.h:28
void setLength(int length1)
Set the length for this packet.
Definition: datagrampacket.h:136
void setData(void *buf1)
Set the data buffer for this packet.
Definition: datagrampacket.h:122
This class represents a datagram packet.
Definition: datagrampacket.h:37
Definition: appender.h:33
void setData(void *buf1, int offset1, int length1)
Set the data buffer for this packet.
Definition: datagrampacket.h:128
InetAddressPtr address
The IP address for this packet.
Definition: datagrampacket.h:50