What is SocketReaderPatch ?
A Coustom Quartz Composer Patch that recieves strings from TCP Socket.
Download
- Plugin File : SocketReaderPatch.plugin
- Source (Xcode Project) : 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
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 RubyKaigi2007 . 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.
- Newer: user_timeline_to_ical
Comments:0
Trackbacks:0
- Trackback URL for this entry
- http://en.deadbeaf.org/2007/06/16/socket-reader-patch/trackback/
- Listed below are links to weblogs that reference
- SocketReaderPatch from en.mootoh.log


