18 #ifndef _DECAF_NET_DATAGRAMPACKET_H_ 19 #define _DECAF_NET_DATAGRAMPACKET_H_ 46 unsigned char* buffer;
94 DatagramPacket(
unsigned char* bytes,
int size,
int offset,
int length );
266 unsigned char*
getData()
const;
284 void setData(
unsigned char* buffer,
int size );
301 void setData(
unsigned char* buffer,
int size,
int offset,
int length );
Mutex object that offers recursive support on all platforms as well as providing the ability to use t...
Definition: Mutex.h:39
void setSocketAddress(const SocketAddress &address)
Sets the SocketAddress (usually IP address + port number) of the remote host to which this datagram i...
virtual ~DatagramPacket()
void setPort(int port)
Sets the port number on the remote host to which this datagram is being sent.
SocketAddress * getSocketAddress() const
Gets the SocketAddress (usually IP address + port number) of the remote host that this packet is bein...
void setAddress(const InetAddress &address)
Sets the IP address of the machine to which this datagram is being sent.
Represents an IP address.
Definition: InetAddress.h:33
void setOffset(int offset)
Sets the offset into the data buffer where data to sent is to be read from or where the data that is ...
void setLength(int length)
Set the length for this packet.
unsigned char * getData() const
void setData(unsigned char *buffer, int size)
Set the data buffer for this packet.
Class that represents a single datagram packet.
Definition: DatagramPacket.h:43
Base class for protocol specific Socket addresses.
Definition: SocketAddress.h:32
InetAddress * getAddress() const
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25