예제 #1
0
 def uri_base_local(self):
     if self._hostinfo:
         raise error.AnonymousHost(
             "Client side of %s can not be expressed as a URI" %
             self._ctx._scheme)
     else:
         return self._ctx._scheme + '://' + self.hostinfo_local
예제 #2
0
파일: quic.py 프로젝트: mrclwlf/aiocoap
 def uri_base_local(self):
     if self._quic.configuration.is_client:
         return error.AnonymousHost(
             "Client side of %s can not be expressed as a URI" %
             self.ctx.scheme)
     else:
         return self.ctx.scheme + '://' + self.hostinfo_local