#include <FXSocket.h>
Public Types | |
enum | { OtherRead, OtherWrite, OtherExec, OtherReadWrite, OtherFull, GroupRead, GroupWrite, GroupExec, GroupReadWrite, GroupFull, OwnerRead, OwnerWrite, OwnerExec, OwnerReadWrite, OwnerFull, Hidden, Directory, File, SymLink, SetUser, SetGroup, Sticky, Character, Block, Socket, Fifo } |
enum | { NoAccess, ReadOnly, WriteOnly, ReadWrite, Append, Truncate, Create, Exclusive, NonBlocking, TextTranslate, Reading, Writing } |
enum | { Begin, Current, End } |
Public Member Functions | |
FXSocket () | |
FXSocket (FXInputHandle handle, FXuint mode) | |
virtual bool | open (FXInputHandle handle, FXuint mode) |
virtual FXival | readBlock (void *data, FXival count) |
virtual FXival | writeBlock (const void *data, FXival count) |
virtual bool | close () |
virtual | ~FXSocket () |
virtual bool | isOpen () const |
FXuint | mode () const |
virtual FXlong | position () const |
virtual FXlong | position (FXlong offset, FXuint from=FXIO::Begin) |
virtual FXlong | truncate (FXlong size) |
virtual bool | flush () |
virtual bool | eof () |
virtual FXlong | size () |
Protected Attributes | |
FXInputHandle | device |
FXuint | access |
anonymous enum [inherited] |
File modes.
anonymous enum [inherited] |
Access modes.
anonymous enum [inherited] |
FX::FXSocket::FXSocket | ( | ) | [inline] |
Construct socket.
FX::FXSocket::FXSocket | ( | FXInputHandle | handle, | |
FXuint | mode | |||
) |
Construct file and attach existing handle h.
virtual FX::FXSocket::~FXSocket | ( | ) | [virtual] |
Destroy.
virtual bool FX::FXSocket::open | ( | FXInputHandle | handle, | |
FXuint | mode | |||
) | [virtual] |
virtual FXival FX::FXSocket::readBlock | ( | void * | data, | |
FXival | count | |||
) | [virtual] |
virtual FXival FX::FXSocket::writeBlock | ( | const void * | data, | |
FXival | count | |||
) | [virtual] |
virtual bool FX::FXSocket::close | ( | ) | [virtual] |
virtual bool FX::FXIO::isOpen | ( | ) | const [virtual, inherited] |
Return true if open.
FXuint FX::FXIO::mode | ( | ) | const [inline, inherited] |
Return access mode.
virtual FXlong FX::FXIO::position | ( | ) | const [virtual, inherited] |
Return handle.
Attach existing device handle Detach device handle Get current file position
Reimplemented in FX::FXFile.
virtual FXlong FX::FXIO::position | ( | FXlong | offset, | |
FXuint | from = FXIO::Begin | |||
) | [virtual, inherited] |
virtual FXlong FX::FXIO::truncate | ( | FXlong | size | ) | [virtual, inherited] |
virtual bool FX::FXIO::flush | ( | ) | [virtual, inherited] |
virtual bool FX::FXIO::eof | ( | ) | [virtual, inherited] |
virtual FXlong FX::FXIO::size | ( | ) | [virtual, inherited] |