Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| package; | |
| import sys.io.Process; | |
| using StringTools; | |
| class Shell | |
| { | |
| public static function main() { | |
| trace(exec('ioreg -c IOSerialBSDClient | grep usbmodem | grep IODialinDevice | cut -d " -f 4')); | |
| } |
| // | |
| // Hello World server in C++ | |
| // Binds REP socket to tcp://*:5555 | |
| // Expects "Hello" from client, replies with "World" | |
| // | |
| #include "zmq.hpp" | |
| #include <string> | |
| #include <sstream> | |
| #include <iostream> | |
| #ifndef _WIN32 |