A simple Java sockets example with a  client which sends an integer object to a server.