|
LIRC libraries
Linux Infrared Remote Control
|
Abstract interface for all connections. More...
Public Member Functions | |
| __enter__ (self) | |
| __exit__ (self, exc_type, exc, traceback) | |
| str | readline (self, float timeout=None) |
| Read a buffered line. | |
| int | fileno (self) |
| Return the file nr used for IO, suitable for select() etc. | |
| bool | has_data (self) |
| Return true if next readline(None) won't block . | |
| close (self) | |
| Close/release all resources. | |
| lirc.client.AbstractConnection.__exit__ | ( | self, | |
| exc_type, | |||
| exc, | |||
| traceback ) |
| lirc.client.AbstractConnection.close | ( | self | ) |
Close/release all resources.
Reimplemented in lirc.client.LircdConnection, and lirc.client.RawConnection.
| int lirc.client.AbstractConnection.fileno | ( | self | ) |
Return the file nr used for IO, suitable for select() etc.
Reimplemented in lirc.client.LircdConnection, and lirc.client.RawConnection.
| bool lirc.client.AbstractConnection.has_data | ( | self | ) |
Return true if next readline(None) won't block .
Reimplemented in lirc.client.LircdConnection, and lirc.client.RawConnection.
| str lirc.client.AbstractConnection.readline | ( | self, | |
| float | timeout = None ) |
Read a buffered line.
Returns code string as described in lircd(8) without trailing newline or None.
Raises TimeoutException if timeout > 0 expires.
Reimplemented in lirc.client.LircdConnection, and lirc.client.RawConnection.