Pyro – Networking made simple

Conclusion

As I've walked through the code, you've probably noticed that the majority of it is not related to Pyro at all; rather, the code does whatever your application would normally do. Pyro is just an overlay that allows multiple hardware devices to interact as if they are all on a local machine by hiding all of the networking, so you don't have to worry about it.

Another application I set up was connected to a sound system, so any calls for sound effects were directed to the Pyro server. Other Pyro daemons controlled four scoreboard screens similar to the application described here. Another one ran a high score display on a fifth monitor. Pyro hid all of the networking code, so all I had to do was call things like sound.playBuzzer() and highScore.addTeam().

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Nerf Target Game

    A cool Nerf gun game for a neighborhood party provides a lesson in Python coding with multiple processors.

  • Python generators simulate gambling

    Can 10 heads in a row really occur in a coin toss? Or, can the lucky numbers in the lottery be 1, 2, 3, 4, 5, 6? We investigate the law of large numbers.

  • Csound

    The powerful Csound software provides an impressive set of features for audio production and processing. We walk you through the entire system.

  • Panda3D

    Several free game engines are available for Linux users, but programming with them is often less than intuitive. Panda3D is an easy-to-use engine that is accessible enough for newcomers but still powerful enough for the pros at Disney Studios.

  • Hidden Meaning: Working with Microformats

    Programs aren’t as smart as humans when it comes to interpreting the meaning of web information. If you want to maximize your search rank, you might want to dress up your HTML documents with microformats and microdata.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

News