---
name: "TTYSession"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/TTYSession"
---

# TTYSession(3cc)

The TTYSession aggragates a TTYStream and a Common C++ Thread which is assumed to be the execution context that will be used to perform actual I/O operations. This class is very anagolous to TCPSession.

## NAME

TTYSession - The TTYSession aggragates a **TTYStream** and a Common C++ **Thread** which is assumed to be the execution context that will be used to perform actual I/O operations. This class is very anagolous to **TCPSession**.

## SYNOPSIS

`#include <serial.h>`

Inherits **TTYStream**, and **Thread**.

### Public Methods

**TTYSession** (const char \*name, int pri=0, int stack=0)\
 *Create TTY stream that will be managed by it's own thread.*

## DETAILED DESCRIPTION

The TTYSession aggragates a **TTYStream** and a Common C++ **Thread** which is assumed to be the execution context that will be used to perform actual I/O operations. This class is very anagolous to **TCPSession**.

This class is very anagolous to **TCPSession**.

**Author:**  David Sugar \<dyfet@ostel.com\>

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### TTYSession::TTYSession (const char \* name, int pri = 0, int stack = 0)

Create TTY stream that will be managed by it's own thread.

**Parameters:**

- *name*

  *of tty device to open.*

- *pri*

  *execution priority.*

- *stack*

  *allocation needed on some platforms.*

## AUTHOR

*Generated automatically by Doxygen for CommonC++ from the source code.*
