a java version socket