public static void writeObject ( final Socket socket , final int port , final Object objectToSend ) throws IOException { writeObject ( socket . getInetAddress ( ) , port , objectToSend ) ; }
Writes the given Object to the given Socket who listen to the given port .