if value under the 'socket' key of the options dictionary is false and values under the 'host' and 'port' keys of the options dictionary are true,
if options [ "host" ] and options [ "port" ] and not options [ "socket" ] :