Logo Search packages:      
Sourcecode: pan version File versions

pan::GIOChannelSocket Class Reference
[Tasks]

#include <socket-impl-gio.h>

Inheritance diagram for pan::GIOChannelSocket:

pan::Socket

List of all members.


Detailed Description

glib implementation of Socket

Definition at line 34 of file socket-impl-gio.h.


Public Member Functions

virtual void get_host (std::string &setme) const
double get_speed_KiBps () const
bool is_abort_set () const
virtual bool open (const StringView &address, int port, std::string &setme_err)
void reset_speed_counter ()
void set_abort_flag (bool b)
virtual void write_command (const StringView &chars, Listener *)
void write_command_va (Listener *, const char *fmt,...)

Protected Member Functions

void increment_xfer_byte_count (unsigned long byte_count)

Protected Attributes

bool _abort_flag
unsigned long _bytes_since_last_check
double _speed_KiBps
time_t _time_of_last_check

Private Types

enum  DoResult { IO_ERR, IO_READ, IO_WRITE, IO_DONE }
enum  WatchMode { READ_NOW, WRITE_NOW, IGNORE_NOW }

Private Member Functions

DoResult do_read ()
DoResult do_write ()
gboolean gio_func (GIOChannel *, GIOCondition)
void set_watch_mode (WatchMode mode)

Static Private Member Functions

static gboolean gio_func (GIOChannel *, GIOCondition, gpointer)
static gboolean timeout_func (gpointer)

Private Attributes

GIOChannel * _channel
std::string _host
GString * _in_buf
bool _io_performed
Listener_listener
GString * _out_buf
std::string _partial_read
unsigned int _tag_timeout
unsigned int _tag_watch

Classes

class  Creator

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

Generated by  Doxygen 1.6.0   Back to index