You will need more than just codes to get this project running.
You will need a program running the background, monitoring the irda port, if you do not have that yet.
Look at lircd
http://www.lirc.org/
After you that setup, the lirc package includes a testing program called mode2.
http://www.lirc.org/html/install.html#testing
This program will report to you the raw data that is coming in the through the irda port.
Get that far and you are almost home.
I see that you did fill out your LQ Forum profile. This makes it hard for me offer any more advice.
Getting my mythtv frontend to respond to my remote was by far the most challenging linux thing I have ever done. May the force be with you.