def _connected(self):
self._auth_properties['<STR_LIT>'] = self._dst_addr[<NUM_LIT:0>]<EOL>if self._dst_service:<EOL><INDENT>self._auth_properties['<STR_LIT>'] = self._dst_name<EOL><DEDENT>if self._dst_hostname is not None:<EOL><INDENT>self._auth_properties['<STR_LIT>'] = self._dst_hostname<EOL><DEDENT>else:<EOL><INDENT>self._auth_properties['<STR_LIT>'] = self._dst_addr[<NUM_LIT:0>]<EOL><DEDENT>self._auth_properties['<STR_LIT>'] = None<EOL>self.event(ConnectedEvent(self._dst_addr))<EOL>self._set_state("<STR_LIT>")<EOL>self._stream.transport_connected()<EOL>
Handle connection success.