Separating socket and RMI networking code.