Added getters() for the socket and protocol.