This is a driver for LG Smart TVs, it was developed to be used by the ninjasphere, but can work standalone as well.
GetTVToShowPin() -asks any LG TVs on the network to show their PIN numbers on screen. PairWithPin() - pairs the go application with the TV, using the specified PIN SendCommandCode() - sends a command code to the paired TV.
LG for making awesome TVs and documentaing their APIs SteveWinfield from http://github.com/SteveWinfield/PHP-LG-SmartTV for the list of enumerated commands for LG TVs David Gray http://github.com/Grayda for the IP and UDP code.