Dumping ground for my crappy Java TCP server helper stuff