Messing around with sockets in Java.