socket test module from Thinking in Enterprise Java