![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXSocket.h>
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 () |
Public Member Functions inherited from FX::FXIO | |
| FXIO () | |
| virtual bool | isOpen () const |
| FXuint | mode () const |
| FXInputHandle | handle () const |
| virtual void | attach (FXInputHandle handle, FXuint mode) |
| virtual void | detach () |
| 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 () |
| virtual | ~FXIO () |
Additional Inherited Members | |
Public Types inherited from FX::FXIO | |
| enum | { OtherRead = 0x00004, OtherWrite = 0x00002, OtherExec = 0x00001, OtherReadWrite = 0x00006, OtherFull = 0x00007, GroupRead = 0x00020, GroupWrite = 0x00010, GroupExec = 0x00008, GroupReadWrite = 0x00030, GroupFull = 0x00038, OwnerRead = 0x00100, OwnerWrite = 0x00080, OwnerExec = 0x00040, OwnerReadWrite = 0x00180, OwnerFull = 0x001C0, Hidden = 0x00200, Directory = 0x00400, File = 0x00800, SymLink = 0x01000, SetUser = 0x02000, SetGroup = 0x04000, Sticky = 0x08000, Character = 0x10000, Block = 0x20000, Socket = 0x40000, Fifo = 0x80000 } |
| enum | { NoAccess = 0, ReadOnly = 1, WriteOnly = 2, ReadWrite = 3, Append = 4, Truncate = 8, Create = 16, Exclusive = 32, NonBlocking = 64, Reading = ReadOnly, Writing = ReadWrite|Create|Truncate } |
| enum | { Begin = 0, Current = 1, End = 2 } |
Socket i/o device.
|
inline |
Construct socket.
| FX::FXSocket::FXSocket | ( | FXInputHandle | handle, |
| FXuint | mode | ||
| ) |
Construct file and attach existing handle h.
|
virtual |
Destroy.
|
virtual |
Open device with access mode and handle.
Reimplemented from FX::FXIO.
Read block of bytes, returning number of bytes read.
Reimplemented from FX::FXIO.
Write block of bytes, returning number of bytes written.
Reimplemented from FX::FXIO.
|
virtual |
Close socket.
Reimplemented from FX::FXIO.
|
|