Simple Socket example in Java