# LIRC libraries: lirc.client.LircdConnection Class Reference

lirc.client.LircdConnection Class Reference
Python client bindings » Classes to receive keypresses

Interface to receive lircrc-translated keypresses. More...

Inheritance diagram for lirc.client.LircdConnection:

## Public Member Functions

def | __init__ (self, str program, str lircrc_path=None, str socket_path=None)
def | readline (self, float timeout=None)
| Implements AbstractConnection.readline(). More...
bool | has_data (self)
| Implements AbstractConnection.has_data()
int | fileno (self)
| Implements AbstractConnection.fileno(). More...
def | close (self)
| Implements AbstractConnection.close()
Public Member Functions inherited from lirc.client.AbstractConnection
def | __enter__ (self)
def | __exit__ (self, exc_type, exc, traceback)

## Detailed Description

Interface to receive lircrc-translated keypresses.

This is basically built on top of lirc_code2char() and as such supporting centralized translations using lircrc_class. See lircrcd(8).

Parameters
  - program: string, used to identify client. See ircat(1)
  - lircrc: lircrc file path. See get_default_lircrc_path() for defaults.
  - socket_path: lircd output socket path, see get_default_socket_path() for defaults.

Definition at line 266 of file client.py.

## Member Function Documentation

## fileno()

int lirc.client.LircdConnection.fileno | ( |  | self | ) |

Implements AbstractConnection.fileno().

Reimplemented from lirc.client.AbstractConnection.

Definition at line 301 of file client.py.

## readline()

def lirc.client.LircdConnection.readline | ( |  | self,
|  | float | timeout = `None`
| ) |  |

Implements AbstractConnection.readline().

Reimplemented from lirc.client.AbstractConnection.

Definition at line 282 of file client.py.

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

- /var/tmp/portage/app-misc/lirc-0.10.1-r4/work/lirc-0.10.1/python-pkg/lirc/client.py