Server IP : 85.214.239.14 / Your IP : 3.135.241.191 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/proc/2/task/2/root/lib/python3/dist-packages/dns/ |
Upload File : |
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # This is a nullcontext for both sync and async. 3.7 has a nullcontext, # but it is only for sync use. class NullContext: def __init__(self, enter_result=None): self.enter_result = enter_result def __enter__(self): return self.enter_result def __exit__(self, exc_type, exc_value, traceback): pass async def __aenter__(self): return self.enter_result async def __aexit__(self, exc_type, exc_value, traceback): pass # These are declared here so backends can import them without creating # circular dependencies with dns.asyncbackend. class Socket: # pragma: no cover async def close(self): pass async def getpeername(self): raise NotImplementedError async def getsockname(self): raise NotImplementedError async def __aenter__(self): return self async def __aexit__(self, exc_type, exc_value, traceback): await self.close() class DatagramSocket(Socket): # pragma: no cover def __init__(self, family: int): self.family = family async def sendto(self, what, destination, timeout): raise NotImplementedError async def recvfrom(self, size, timeout): raise NotImplementedError class StreamSocket(Socket): # pragma: no cover async def sendall(self, what, timeout): raise NotImplementedError async def recv(self, size, timeout): raise NotImplementedError class Backend: # pragma: no cover def name(self): return "unknown" async def make_socket( self, af, socktype, proto=0, source=None, destination=None, timeout=None, ssl_context=None, server_hostname=None, ): raise NotImplementedError def datagram_connection_required(self): return False async def sleep(self, interval): raise NotImplementedError