Home
last modified time | relevance | path

Searched refs:socketserver (Results 1 – 25 of 62) sorted by relevance

123

/external/python/cpython3/Lib/test/
Dtest_socketserver.py14 import socketserver
48 class ForkingUnixStreamServer(socketserver.ForkingMixIn,
49 socketserver.UnixStreamServer):
52 class ForkingUnixDatagramServer(socketserver.ForkingMixIn,
53 socketserver.UnixDatagramServer):
152 if HAVE_FORKING and isinstance(server, socketserver.ForkingMixIn):
180 self.run_server(socketserver.TCPServer,
181 socketserver.StreamRequestHandler,
185 self.run_server(socketserver.ThreadingTCPServer,
186 socketserver.StreamRequestHandler,
[all …]
Dtest_imaplib.py7 import socketserver
93 class SecureTCPServer(socketserver.TCPServer):
112 class SimpleIMAPHandler(socketserver.StreamRequestHandler):
261 class EOFHandler(socketserver.StreamRequestHandler):
542 server_class = socketserver.TCPServer
583 server_class = socketserver.TCPServer
702 class EOFHandler(socketserver.StreamRequestHandler):
/external/curl/tests/
Ddictserver.py34 import SocketServer as socketserver namespace
36 import socketserver
64 socketserver.TCPServer.allow_reuse_address = True
65 server = socketserver.TCPServer(local_bind, DictHandler)
71 class DictHandler(socketserver.BaseRequestHandler):
Dnegtelnetserver.py31 import socketserver
33 import SocketServer as socketserver namespace
62 socketserver.TCPServer.allow_reuse_address = True
63 server = socketserver.TCPServer(local_bind, NegotiatingTelnetHandler)
69 class NegotiatingTelnetHandler(socketserver.BaseRequestHandler):
/external/autotest/site_utils/
Dlog_socket_server.py23 import six.moves.socketserver
30 class LogRecordStreamHandler(six.moves.socketserver.StreamRequestHandler):
84 class LogRecordSocketReceiver(six.moves.socketserver.ThreadingTCPServer):
94 six.moves.socketserver.ThreadingTCPServer.__init__(self, (host, port), handler)
/external/python/cpython3/Doc/library/
Dsocketserver.rst1 :mod:`socketserver` --- A framework for network servers
4 .. module:: socketserver
7 **Source code:** :source:`Lib/socketserver.py`
11 The :mod:`socketserver` module simplifies the task of writing network servers.
118 :meth:`socketserver.ForkingMixIn.server_close` waits until all child
120 :attr:`socketserver.ForkingMixIn.block_on_close` attribute is false.
122 :meth:`socketserver.ThreadingMixIn.server_close` waits until all non-daemon
124 :attr:`socketserver.ThreadingMixIn.block_on_close` attribute is false. Use
131 :meth:`socketserver.ForkingMixIn.server_close` and
132 :meth:`socketserver.ThreadingMixIn.server_close` now waits until all
[all …]
Dinternet.rst41 socketserver.rst
/external/webrtc/rtc_base/deprecated/
Dsignal_thread_unittest.cc65 Thread::Current()->socketserver()->Wait(250, false); in DoWork()
146 Thread::Current()->socketserver()->Wait(100, false); in Run()
183 Thread::Current()->socketserver()->Wait(10, false); in TEST_F()
190 Thread::Current()->socketserver()->Wait(500, false); in TEST_F()
/external/llvm-project/clang/tools/scan-view/bin/
Dscan-view88 import socketserver
90 import SocketServer as socketserver namespace
92 t = socketserver.TCPServer((kDefaultHost, port), None)
/external/llvm-project/llvm/tools/sancov/
Dcoverage-report-server.py29 import socketserver
196 socketserver.TCPServer.allow_reuse_address = True
197 httpd = socketserver.TCPServer((args.host, args.port), ServerHandler)
/external/webrtc/rtc_base/
Dtest_client_unittest.cc44 main->socketserver()->CreateAsyncSocket(loopback.family(), SOCK_DGRAM); in TestUdpInternal()
60 main->socketserver()->CreateAsyncSocket(loopback.family(), SOCK_STREAM); in TestTcpInternal()
Dtest_echo_server.cc18 : server_socket_(thread->socketserver()->CreateAsyncSocket(addr.family(), in TestEchoServer()
Dphysical_socket_server_unittest.cc136 static_cast<FakePhysicalSocketServer*>(socketserver()); in DoAccept()
149 static_cast<FakePhysicalSocketServer*>(socketserver()); in DoSend()
164 static_cast<FakePhysicalSocketServer*>(socketserver()); in DoSendTo()
/external/webrtc/examples/androidvoip/jni/
Dandroid_voip_client.cc50 RTC_DCHECK(thread->socketserver() != nullptr); in QueryDefaultLocalAddress()
54 thread->socketserver()->CreateAsyncSocket(family, SOCK_DGRAM)); in QueryDefaultLocalAddress()
252 rtp_socket_.reset(rtc::AsyncUDPSocket::Create(voip_thread_->socketserver(), in StartSession()
261 rtcp_socket_.reset(rtc::AsyncUDPSocket::Create(voip_thread_->socketserver(), in StartSession()
/external/perfetto/tools/
Drecord_android_trace9 import socketserver
235 socketserver.TCPServer.allow_reuse_address = True
236 with socketserver.TCPServer(('127.0.0.1', PORT), HttpHandler) as httpd:
/external/webrtc/p2p/base/
Dtest_turn_server.h97 rtc::AsyncUDPSocket::Create(thread_->socketserver(), int_addr),
103 thread_->socketserver()->CreateAsyncSocket(AF_INET, SOCK_STREAM);
Dtest_stun_server.cc21 thread->socketserver()->CreateAsyncSocket(addr.family(), SOCK_DGRAM); in Create()
/external/python/cpython3/Lib/idlelib/
Drpc.py38 import socketserver
73 class RPCServer(socketserver.TCPServer):
78 socketserver.TCPServer.__init__(self, addr, handlerclass)
506 class RPCHandler(socketserver.BaseRequestHandler, SocketIO):
514 socketserver.BaseRequestHandler.__init__(self, sock, addr, svr)
/external/webrtc/examples/stunserver/
Dstunserver_main.cc35 rtc::AsyncUDPSocket::Create(pthMain->socketserver(), server_addr); in main()
/external/webrtc/test/network/
Dnetwork_emulation_unittest.cc211 auto* s1 = t1->socketserver()->CreateAsyncSocket(AF_INET, SOCK_DGRAM); in TEST()
212 auto* s2 = t2->socketserver()->CreateAsyncSocket(AF_INET, SOCK_DGRAM); in TEST()
335 auto* s1 = t1->socketserver()->CreateAsyncSocket(AF_INET, SOCK_DGRAM); in TEST()
336 auto* s2 = t2->socketserver()->CreateAsyncSocket(AF_INET, SOCK_DGRAM); in TEST()
/external/webrtc/sdk/android/src/jni/
Dandroid_network_monitor.cc218 worker_thread()->socketserver()->set_network_binder(this); in Start()
235 if (worker_thread()->socketserver()->network_binder() == this) { in Stop()
236 worker_thread()->socketserver()->set_network_binder(nullptr); in Stop()
/external/python/cpython2/Doc/library/
Dinternet.rst39 socketserver.rst
/external/python/cpython3/Lib/http/
Dserver.py102 import socketserver
132 class HTTPServer(socketserver.TCPServer):
138 socketserver.TCPServer.server_bind(self)
144 class ThreadingHTTPServer(socketserver.ThreadingMixIn, HTTPServer):
148 class BaseHTTPRequestHandler(socketserver.StreamRequestHandler):
/external/webrtc/examples/turnserver/
Dturnserver_main.cc74 rtc::AsyncUDPSocket::Create(main->socketserver(), int_addr); in main()
/external/python/cpython3/Lib/test/test_asyncio/
Dutils.py12 import socketserver
213 class UnixHTTPServer(socketserver.UnixStreamServer, HTTPServer):
216 socketserver.UnixStreamServer.server_bind(self)

123