def _socket_connect(self):
self.usage_count = <NUM_LIT:0><EOL>try:<EOL><INDENT>s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, <NUM_LIT:0>)<EOL>s.connect((self._host, self._port))<EOL>self.__stream = self.__backend.register_stream(s, **self.__kwargs)<EOL>self.__stream.set_close_callback(self._socket_close)<EOL>self.__alive = True<EOL><DEDENT>except socket.error as error:<EOL><INDENT>raise InterfaceError(error)<EOL><DEDENT>
create a socket, connect, register a stream with the async backend