---
name: "shevek_server_connection"
section: "3"
platform: "linux"
package: "libshevek-doc"
version: "1.4-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/shevek_server_connection"
---

# shevek\_server\_connection(3)

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

## NAME

shevek::server\< client, serverdata \>::connection -

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

## SYNOPSIS

`#include <server.hh>`

Inherits **shevek::refbase**.

### Public Member Functions

void **continue\_reading** ()\
 *This is called after in-\>unread (), to resume accepting data from this connection.*  **~connection** ()\
 *Destructor.*

### Public Attributes

Glib::RefPtr\< **shevek::fd** \> **in**\
 *The input socket. The client can stop reading from this connection by calling in-\>unread ().*  Glib::RefPtr\< **shevek::fd** \> **out**\
 *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.*

### 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.

## Author

Generated automatically by Doxygen for libshevek from the source code.
