Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXSocket Class Reference

Socket i/o device. More...

#include <FXSocket.h>

Inheritance diagram for FX::FXSocket:
FX::FXIODevice FX::FXIO

List of all members.

Public Member Functions

 FXSocket ()
 Construct socket.
 FXSocket (FXInputHandle h, FXuint m)
 Construct file and attach existing handle h.
virtual FXbool open (FXInputHandle h, FXuint m)
 Open device with access mode and handle.
- Public Member Functions inherited from FX::FXIODevice
 FXIODevice ()
 Construct.
 FXIODevice (FXInputHandle h, FXuint m=FXIO::Reading)
 Construct device and attach existing handle h.
FXInputHandle handle () const
 Return handle.
virtual FXbool setMode (FXuint m)
 Change access mode of open device.
virtual FXbool isOpen () const
 Return true if open.
virtual FXbool isSerial () const
 Return true if serial access only.
virtual FXbool attach (FXInputHandle h, FXuint m)
 Attach existing device handle, taking ownership of the handle.
virtual FXbool detach ()
 Detach device handle.
virtual FXlong position () const
 Get current file position.
virtual FXlong position (FXlong offset, FXuint from=FXIO::Begin)
 Change file position, returning new position from start.
virtual FXival readBlock (void *ptr, FXival count)
 Read block of bytes, returning number of bytes read.
virtual FXival writeBlock (const void *ptr, FXival count)
 Write block of bytes, returning number of bytes written.
virtual FXlong truncate (FXlong sz)
 Truncate file.
virtual FXbool flush ()
 Flush to disk.
virtual FXint eof ()
 Test if we're at the end; -1 if error.
virtual FXlong size ()
 Return size.
virtual FXbool close ()
 Close handle.
virtual ~FXIODevice ()
 Destroy and close.
- Public Member Functions inherited from FX::FXIO
FXbool isReadable () const
 Is readable.
FXbool isWritable () const
 Is writable.
FXuint mode () const
 Return access mode.
FXbool readChar (FXchar &ch)
 Read character.
FXbool writeChar (FXchar ch)
 Write character.
virtual ~FXIO ()
 Destroy and close.

Additional Inherited Members

- Protected Attributes inherited from FX::FXIODevice
FXInputHandle device
- Protected Attributes inherited from FX::FXIO
FXlong pointer
FXuint access

Detailed Description

Socket i/o device.


The documentation for this class was generated from the following file:

Copyright © 1997-2016 Jeroen van der Zijp