Java sockets - basic example.
Some php utilities: pman and phpsh.