LibLirc .Net

LibLirc.Net is a small library to access LIRC servers from .Net applications.

I’ve developed this small lib because I needed a way to retrieve the LIRC signals from my desktop PC with my notebook. I haven’t used it much though. This might come in handy if you try to develop an application to remotely control you PC via in infrared control.

Documentation is still to be written but I will publish a short howto here. Basicly the library relies on the observer pattern to trigger events fired by the LIRC server. Here’s an example of how you would implement the listener interface:

using System;
using LircLibrary;
 
namespace Test
{
	public class MyListener: ICommandReceivedListener
	{
		public MyListener()
		{
		}
 
		public void update( Command c )
		{
			Console.WriteLine( c.ToString() );
		}
	}
}

And this is how you would instanciate the LIRC client:

using LircLibrary;
 
// ....
 
LibLirc ll = new LibLirc( "192.168.1.41" );
 
/* Add a listener */
ll.AddListener( new MyListener() );
 
/* Listen starts the background thread.
 * It will connect to the remote host and wait for data
 */
ll.Listen();
 
// do something ..
 
/* Disconnect and end the thread */
ll.Disconnect();

Usefull links

Downloads

Sadly enough I seem to have lost both source code and binaries. However that might have happened. If anyone has downloaded this .. send it to me :)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Reddit
  • MisterWong
Get Adobe Flash playerPlugin by wpburn.com wordpress themes