Go to the documentation of this file.
48 buffer.
write(&addr,
sizeof(addr));
61 buffer.
read(tmp, size <
sizeof(tmp) ? size :
sizeof(tmp));
62 tmp[
sizeof(tmp) - 1] = 0;
IPV4 * m_ipv4
IPV4 object pointer.
static Size copy(void *dest, const void *src, Size count)
Copy memory from one place to another.
virtual ~IPV4Address()
Destructor.
IPV4Address(const u32 inode, IPV4 *ipv4)
Constructor.
Represents a file present on a FileSystem.
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read IPV4 address.
#define DEBUG(msg)
Output a debug message to standard output.
Size m_size
Size of the file, in bytes.
static const Address toAddress(const char *address)
Convert string to IPV4 address.
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
virtual FileSystem::Result setAddress(const Address *address)
Set current IP address.
Internet Protocol Version 4.
static const String toString(const Address address)
Convert address to string.
Result
Result code for filesystem Actions.
virtual FileSystem::Result getAddress(Address *address)
Get current IP address.
FileSystem::Result read(void *buffer, const Size size, const Size offset=ZERO)
Read bytes from the I/O buffer.
FileSystem::Result write(const void *buffer, const Size size, const Size offset=ZERO)
Write bytes to the I/O buffer.
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Set new IPV4 address.