4#ifndef RUDIMENTS_FILEDESCRIPTOR_H
5#define RUDIMENTS_FILEDESCRIPTOR_H
7#include <rudiments/private/filedescriptorincludes.h>
202 ssize_t
write(
bool value);
207 ssize_t
write(
const byte_t *
string);
212 ssize_t
write(
const char *
string);
217 ssize_t
write(
const wchar_t *
string);
227 ssize_t
write(
const byte_t *
string,
size_t size);
241 ssize_t
write(
const wchar_t *
string,
size_t length);
351 ssize_t
write(
const byte_t *
string, int32_t
sec, int32_t
usec);
358 ssize_t
write(
const char *
string,
366 ssize_t
write(
const wchar_t *
string,
383 ssize_t
write(
const byte_t *
string,
size_t size,
403 ssize_t
write(
const wchar_t *
string,
size_t length,
1280 #include <rudiments/private/filedescriptor.h>
1283#include <rudiments/private/filedescriptorinlines.h>
Definition character.h:11
Definition filedescriptor.h:13
bool isCurrentBlockMmapBuffered()
bool getAllowShortReads()
virtual bool receiveSocket(int32_t *sock)
socketlayer * getSocketLayer()
ssize_t write(int64_t number)
ssize_t read(int16_t *buffer)
virtual bool setNonBlockingMode(bool usenonblockingmode)
ssize_t write(uint16_t number)
void setRetryInterruptedIoctl(bool retry)
static uint64_t convertLittleEndianToHost(uint64_t value)
static bool supportsPassAndReceiveSocket()
virtual off64_t setPositionRelativeToCurrent(off64_t offset)
bool setIsStream(bool isstream)
bool getNaglesAlgorithmEnabled()
ssize_t write(uint16_t number, int32_t sec, int32_t usec)
virtual bool passFileDescriptor(int32_t fd)
static uint16_t convertHostToNet(uint16_t value)
ssize_t write(uint64_t number, int32_t sec, int32_t usec)
virtual bool passSocket(int32_t sock, int32_t sec, int32_t usec)
virtual int32_t fCntl(int32_t command, long arg)
virtual bool receiveSocket(int32_t *sock, int32_t sec, int32_t usec)
ssize_t write(uint32_t number, int32_t sec, int32_t usec)
size_t getWriteBufferSize()
static uint16_t convertNetToHost(uint16_t value)
int32_t waitForNonBlockingRead(int32_t sec, int32_t usec)
virtual off64_t getPosition()
ssize_t write(int32_t number)
bool getAllowShortWrites()
ssize_t read(int16_t *buffer, int32_t sec, int32_t usec)
ssize_t write(uint32_t number)
bool setWriteBufferSize(size_t size)
virtual bool supportsBlockingAndNonBlockingModes()
bool getRetryInterruptedWrites()
size_t getReadBufferSize()
void setFileDescriptor(int32_t filedesc)
ssize_t read(uint64_t *buffer)
ssize_t read(int32_t *buffer)
void setTranslateByteOrder(bool translate)
int32_t waitForNonBlockingWrite(int32_t sec, int32_t usec)
ssize_t read(uint32_t *buffer)
static uint64_t convertHostToNet(uint64_t value)
bool getRetryInterruptedIoctl()
ssize_t read(int64_t *buffer, int32_t sec, int32_t usec)
bool setSocketWriteBufferSize(int32_t size)
void setRetryInterruptedFcntl(bool retry)
bool getTranslateByteOrder()
virtual bool receiveFileDescriptor(int32_t *fd, int32_t sec, int32_t usec)
off64_t getCurrentBlockOffset()
void setAllowShortReads(bool allow)
static uint16_t convertHostToLittleEndian(uint16_t value)
void setRetryInterruptedWrites(bool retry)
bool getRetryInterruptedFcntl()
void setSocketLayer(socketlayer *layer)
static uint32_t convertHostToNet(uint32_t value)
static uint64_t convertHostToLittleEndian(uint64_t value)
ssize_t write(int32_t number, int32_t sec, int32_t usec)
static bool createPipe(filedescriptor *readfd, filedescriptor *writefd)
virtual off64_t setPositionRelativeToEnd(off64_t offset)
virtual bool passFileDescriptor(int32_t fd, int32_t sec, int32_t usec)
virtual off64_t setPositionRelativeToBeginning(off64_t offset)
bool setReadBufferSize(size_t size)
bool flushWriteBuffer(int32_t sec, int32_t usec)
bool setSocketReadBufferSize(int32_t size)
virtual int32_t ioCtl(int32_t command, void *arg)
bool setNaglesAlgorithmEnabled(bool enabled)
static uint32_t convertLittleEndianToHost(uint32_t value)
ssize_t read(uint64_t *buffer, int32_t sec, int32_t usec)
ssize_t read(uint16_t *buffer)
ssize_t read(int64_t *buffer)
ssize_t write(int16_t number)
bool getSocketReadBufferSize(int32_t *size)
bool getMmapBufferingEnabled()
int32_t getFileDescriptor()
bool setCloseOnExec(bool close)
static uint16_t convertLittleEndianToHost(uint16_t value)
virtual bool passSocket(int32_t sock)
void setMmapBufferingEnabled(bool enabled)
ssize_t write(int16_t number, int32_t sec, int32_t usec)
ssize_t read(int32_t *buffer, int32_t sec, int32_t usec)
ssize_t write(int64_t number, int32_t sec, int32_t usec)
ssize_t write(uint64_t number)
virtual bool getNonBlockingMode()
bool getRetryInterruptedReads()
void setRetryInterruptedWaits(bool retry)
static uint32_t convertNetToHost(uint32_t value)
void setAllowShortWrites(bool allow)
static uint32_t convertHostToLittleEndian(uint32_t value)
virtual ~filedescriptor()
bool duplicate(int32_t newfd)
void setRetryInterruptedReads(bool retry)
bool getRetryInterruptedWaits()
ssize_t read(uint32_t *buffer, int32_t sec, int32_t usec)
static uint64_t convertNetToHost(uint64_t value)
bool getSocketWriteBufferSize(int32_t *size)
virtual bool receiveFileDescriptor(int32_t *fd)
static bool supportsPassAndReceiveFileDescriptor()
ssize_t read(uint16_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t writeUcs2(const ucs2_t *string)=0
virtual ssize_t write(const byte_t *string, size_t size)=0
Definition socketlayer.h:11