def _connect(self,server=None,port=None):
if self.me.node or self.me.resource:<EOL><INDENT>raise Value("<STR_LIT>")<EOL><DEDENT>if not server:<EOL><INDENT>server=self.server<EOL><DEDENT>if not port:<EOL><INDENT>port=self.port<EOL><DEDENT>if not server or not port:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>Stream._connect(self,server,port,None,self.me)<EOL>
Same as `ComponentStream.connect` but assume `self.lock` is acquired.