SocketReaderPatch

A Coustom Quartz Composer Patch that recieves strings from TCP Socket.

http://blog.deadbeaf.org/wp-content/uploads/2007/06/socketreaderpatch.png

Code

lang/objective-c/qc/SocketReaderPatch

Install

Copy SocketReaderPatch.plugin into /Library/Graphics/Patch .

How to use

Open QuartzComposer, find SocketReader from the Patch Library list (type "Socket" in Search in Libraries field to search it) .

Then drag SocketReader into right pane, and play it. SocketReader listens port number 12345 in default. Make some client application and write UTF-8 strings into the socket, and Quartz Composer will show that strings.

Example

http://blog.deadbeaf.org/wp-content/uploads/2007/06/socketreaderpatch-01.png

ScreenCast

Note

  • Very buggy. If two or more sockets are connected, CPU usage will be so high.
  • To change the port number, edit port_ variable in SocketReaderPatch.m.

Reference

I used Quartz Composer Custom Patch Xcode template from fdiv.net:Xcode Template for Custom Quartz Composer Patches. (Thanks!)

In order to play with socket in Cocoa, O'Reilly Network::mac devcenter::Networking in Cocoa was pretty helpful.

Motivation

I came up to an idea that IRC messages flow beautifully by using QuartzComposer, in RubyKaigi 2007. To push dynamic text into QuartzComposer, it seemed to be only RSS feed out there.

License

CC:Attribution-NonCommercial-ShareAlike, because above Xcode template claims that license.

Contact

Any feedbacks are welcome, mail me.