示例#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