Part of BerkeleyScketAdapter implementation