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

Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes

pan::GIOChannelSocket Class Reference

#include <socket-impl-gio.h>

Inheritance diagram for pan::GIOChannelSocket:
Inheritance graph
Collaboration diagram for pan::GIOChannelSocket:
Collaboration graph

List of all members.


class  Creator

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 }

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
GString * _out_buf
std::string _partial_read
unsigned int _tag_timeout
unsigned int _tag_watch

Detailed Description

glib implementation of Socket

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

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

Generated by  Doxygen 1.6.0   Back to index