Logo Search packages:      
Sourcecode: pan version File versions  Download package

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

double get_speed_KiBps () const
bool is_abort_set () const
virtual bool open (const StringView &address, int port)
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 _byte_count
time_t _time_started

Private Types

enum  WatchMode { READ_NOW, WRITE_NOW, IGNORE_NOW }

Private Member Functions

bool do_read ()
bool do_write ()
void set_watch_mode (WatchMode mode)

Static Private Member Functions

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

Private Attributes

GIOChannel * _channel
GString * _in_buf
bool _io_performed
Listener_listener
GString * _out_buf
std::string _partial_line
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