Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


iochannel.hh File Reference

A GIOChannel C++ interface. More...

#include <xfc/trackable.hh>
#include <xfc/utfstring.hh>
#include <glib/giochannel.h>
#include <xfc/glib/inline/iochannel.inl>

Namespaces

Classes

Typedefs

Enumerations


Detailed Description

A GIOChannel C++ interface.

Provides IO Channels for portable support for using files, pipes and sockets.


Enumeration Type Documentation

enum IOChannelError
 

enum IOChannelError The error codes returned by IOChannel operations.

Enumeration values:
IO_CHANNEL_ERROR_FBIG  File too large.
IO_CHANNEL_ERROR_INVAL  Invalid argument.
IO_CHANNEL_ERROR_IO  IO error.
IO_CHANNEL_ERROR_ISDIR  File is a directory.
IO_CHANNEL_ERROR_NOSPC  No space left on device.
IO_CHANNEL_ERROR_NXIO  No such device or address.
IO_CHANNEL_ERROR_OVERFLOW  Value too large for defined datatype.
IO_CHANNEL_ERROR_PIPE  Broken pipe.
IO_CHANNEL_ERROR_FAILED  Some other error.

enum IOCondition
 

enum IOCondition A bitwise combination representing a condition to watch for on an event source.

Enumeration values:
IO_IN  There is data to read.
IO_OUT  Data can be written (without blocking).
IO_PRI  There is urgent data to read.
IO_ERR  Error condition.
IO_HUP  Hung up (the connection has been broken, usually for pipes and sockets).
IO_NVAL  Invalid request. The file descriptor is not open.

enum IOFlags
 

enum IOFlags Specifies the properties of an IOChannel.

Some of the flags can only be read with G::IOChannel::get_flags(), but not changed with G::IOChannel::set_flags().

Enumeration values:
IO_FLAG_APPEND  Turns on append mode, corresponds to O_APPEND (see the documentation of the UNIX open() syscall).
IO_FLAG_NONBLOCK  Turns on nonblocking mode, corresponds to O_NONBLOCK/O_NDELAY (see the documentation of the UNIX open() syscall).
IO_FLAG_IS_WRITEABLE  Read only flag; Indicates that the io channel is readable.
IO_FLAG_IS_SEEKABLE  Read only flag; Indicates that the io channel is writable..
IO_FLAG_MASK  Mask flag (I dont know what this means).
IO_FLAG_GET_MASK  Same as mask flag.
IO_FLAG_SET_MASK  Turns on append mode and nonblocking mode.

enum IOStatus
 

enum IOStatus Describes the status of an IO operation.

Enumeration values:
IO_STATUS_ERROR  An error occurred.
IO_STATUS_NORMAL  Success.
IO_STATUS_EOF  End of file.
IO_STATUS_AGAIN  Resource temporarily unavailable.

enum SeekType
 

Specifies the base position for a IOChannel::seek() operation.

Enumeration values:
IO_SEEK_CUR  The current position in the file.
IO_SEEK_SET  The start of the file.
IO_SEEK_END  The end of the file.
Xfce Foundation Classes


Copyright © 2004-2005 The XFC Development Team XFC 4.3