Add method to get underlying socket descriptor.