Changed some things in SocketPort so that __repr__() will now work.