python-irda : IrDA Socket Interface for Python
----------------------------------------------

Author: Jonathan Krauss
E-Mail: jkrauss@asymworks.com

This module implements a lightweight IrDA socket interface for Python. It is modeled after and uses a similar interface to the default Python 'socket' module.  The code has been tested on Linux and should work on Windows as well.

The code is released under a BSD license.

Basic Usage
-----------

import irda

# Enumerate IrDA Devices
devs = irda.discover()

# Create a new IrDA Socket
sck = irda.irsocket()

# Connect to the first device
sck.set_timeout(2000)
sck.connect(devs[0]['addr'])

# Read and write using send(data) and recv(num_bytes)
sck.send('\x14')
sdat = sck.recv(4)
data = unpack('<L', sdat)[0]

# Close socket when done
sck.close()

Building/Installation
---------------------

Run the following commands (or equivalents) to build and install irsocket:

$ python setup.py build
$ sudo python setup.py install

Bugs/Additions
--------------

Please feel free to send pull requests or patches to <jkrauss@asymworks.com>
