libshevek
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
shevek::server< client, serverdata >::connection Struct Reference

Base of the client class which is implemented by the calling program. More...

#include <server.hh>

Inheritance diagram for shevek::server< client, serverdata >::connection:
shevek::refbase

Public Member Functions

void continue_reading ()
 This is called after in->unread (), to resume accepting data from this connection.
 ~connection ()
 Destructor.
- Public Member Functions inherited from shevek::refbase
template<typename _T >
Glib::RefPtr< _T > cast_dynamic ()
 Identical to GLib::RefPtr <>::cast_dynamic, but nicer to type.

Public Attributes

Glib::RefPtr< shevek::fdin
 The input socket. The client can stop reading from this connection by calling in->unread ().
Glib::RefPtr< shevek::fdout
 The output socket. This is used to send data to the connection.

Protected Member Functions

 connection ()
 The client class can construct this object with its create function.
Glib::RefPtr< server< client,
serverdata > > 
get_server ()
 Access to the server object which hosts this client.
void disconnect ()
 This can be called by the client object to close this connection.
- Protected Member Functions inherited from shevek::refbase
 refbase ()
 Constructor, increments reference count.
virtual ~refbase ()
 Destructor, decrements reference count and destroys the object if it reaches 0.
template<typename T >
Glib::RefPtr< T > refptr_this ()
 Get a RefPtr to this, protected because only members should need it.

Friends

class server< client, serverdata >

Detailed Description

template<typename client, typename serverdata>
struct shevek::server< client, serverdata >::connection

Base of the client class which is implemented by the calling program.

A client object is created for every connection which is accepted. This class handles server administration and provides access to members from the client class.


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