Added socket selector class.