/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
H A D | test_smtpnet.py | 16 server = smtplib.SMTP_SSL(self.testServer, self.remotePort)
17 server.ehlo()
18 server.quit()
23 server = smtplib.SMTP_SSL(self.testServer)
24 server.ehlo()
25 server.quit()
|
H A D | test_imaplib.py | 113 if verbose: print "creating server"
114 server = MyServer(addr, hdlr)
115 self.assertEqual(server.server_address, server.socket.getsockname())
118 print "server created"
121 print "HDLR =", server.RequestHandlerClass
125 target=server.serve_forever,
132 if verbose: print "server running"
133 return server, t
135 def reap_server(self, server, threa [all...] |
H A D | test_epoll.py | 62 server, addr = self.serverSocket.accept()
64 self.connections.extend((client, server))
65 return client, server
87 server, client = self._connected_pair()
91 ep.register(server.fileno(), select.EPOLLIN | select.EPOLLOUT)
99 ep.register(server, select.EPOLLIN | select.EPOLLOUT)
118 ep.register(server, select.EPOLLIN | select.EPOLLOUT)
119 self.assertRaises(IOError, ep.register, server,
125 server, client = self._connected_pair()
130 ep2.register(server [all...] |
H A D | test_ssl.py | 319 self.fail("No server certificate on svn.python.org:443!")
327 self.fail("Got server certificate %s for svn.python.org!" % pem)
331 self.fail("No server certificate on svn.python.org:443!")
374 def __init__(self, server, connsock):
375 self.server = server
384 if self.server.certreqs == ssl.CERT_REQUIRED:
386 if test_support.verbose and self.server.chatty:
389 if test_support.verbose and self.server.chatty:
392 if test_support.verbose and self.server [all...] |
H A D | test_socketserver.py | 121 if verbose: print "creating server"
122 server = MyServer(addr, MyHandler)
123 self.assertEqual(server.server_address, server.socket.getsockname())
124 return server
129 server = self.make_server(self.pickaddr(svrcls.address_family),
132 # the server.
133 addr = server.server_address
135 print "server created"
140 target=server [all...] |
H A D | test_kqueue.py | 97 server, addr = serverSocket.accept()
107 ev = select.kevent(server.fileno(),
111 ev = select.kevent(server.fileno(),
129 (server.fileno(), select.KQ_FILTER_WRITE, flags)])
132 server.send("world!!!")
149 (server.fileno(), select.KQ_FILTER_WRITE, flags),
150 (server.fileno(), select.KQ_FILTER_READ, flags)])
152 # Remove completely client, and server read part
161 ev = select.kevent(server.fileno(),
170 (server [all...] |
H A D | test_ftplib.py | 24 # the dummy data returned by server over the data channel when
404 self.server = DummyFTPServer((HOST, 0))
405 self.server.start()
407 self.client.connect(self.server.host, self.server.port)
411 self.server.stop()
459 self.server.handler.next_response = '200'
464 self.server.handler.next_response = '199'
508 self.assertEqual(self.server.handler.last_received_data, RETR_DATA)
520 self.assertEqual(self.server 681 def server(self, evt, serv): member in class:TestTimeouts [all...] |
H A D | test_urllib2_localnet.py | 12 # Loopback http server infrastructure
15 """HTTP server w/ a few modifications that make it useful for
25 # that we can stop the server easily.
41 """Stoppable thread that runs a loopback http server."""
218 self.wfile.write("Our apologies, but our server is down due to "
246 self.server = LoopbackHttpServerThread(create_fake_proxy_handler)
247 self.server.start()
248 self.server.ready.wait()
249 proxy_url = "http://127.0.0.1:%d" % self.server.port
255 self.server [all...] |
H A D | test_poplib.py | 20 # the dummy data returned by server when LIST and RETR commands are issued
39 self.push('+OK dummy pop3 server ready.')
163 self.server = DummyPOP3Server((HOST, 0))
164 self.server.start()
165 self.client = poplib.POP3(self.server.host, self.server.port)
169 self.server.stop()
172 self.assertEqual(self.client.getwelcome(), '+OK dummy pop3 server ready.')
242 self.push('+OK dummy pop3 server ready.')
270 self.server 292 def server(self, evt, serv): member in class:TestTimeouts [all...] |
H A D | test_asyncore.py | 365 # wait a little longer for the server to initialize (it sometimes
469 """A server which listens on an address and dispatches the
527 server = TCPServer()
528 client = TestClient(server.address)
546 server = TestListener()
547 client = BaseClient(server.address)
548 self.loop_waiting_for_flag(server)
562 server = TCPServer(TestHandler)
563 client = TestClient(server.address)
573 server [all...] |
H A D | test_docxmlrpc.py | 14 # the server created in setUp blocks expecting one to come in.
26 def server(evt, numrequests):
function 37 "This is an XML-RPC server's documentation, but the server "
73 # Enable server feedback
77 threading.Thread(target=server, args=(self.evt, 1)).start()
92 # Disable server feedback
132 """Test that the server correctly automatically wraps references to
170 ' server.</tt></dd></dl>\n <dl><dt><a name="-system.methodHelp">'
184 ' result.<br>\n <br>\nThis server [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
H A D | config.py | 34 'display full response text from server')]
68 _servers = [server.strip() for server in
70 if server.strip() != '']
79 for server in _servers:
80 current = {'server': server}
81 current['username'] = config.get(server, 'username')
88 if config.has_option(server, key):
89 current[key] = config.get(server, ke [all...] |
/device/generic/goldfish-opengl/tests/gles_android_wrapper/ |
H A D | egl.cpp | 177 // initialize a connection to the server, and the GLESv1/v2 encoders; 180 ALOGE("couldn't create server connection\n"); 327 ServerConnection *server; local 328 if (s_needEncode && (server = ServerConnection::s_getServerConnection()) != NULL) { 329 server->utEnc()->createSurface(server->utEnc(), getpid(), (uint32_t)surface); 339 ServerConnection *server; local 340 if (s_needEncode && (server = ServerConnection::s_getServerConnection()) != NULL) { 341 server->utEnc()->createSurface(server 351 ServerConnection *server; local 363 ServerConnection *server; local 459 ServerConnection *server; local 479 ServerConnection *server; local 501 ServerConnection *server; local 562 ServerConnection *server; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
H A D | RCSProxy.py | 13 RCSProxyServer -- used on the server side of remote access
22 import server
namespace 152 class RCSProxyServer(RCSProxyLocal, server.SecureServer):
154 def __init__(self, address, verbose = server.VERBOSE):
156 server.SecureServer.__init__(self, address, verbose)
159 server.SecureServer._close(self)
163 server.SecureServer._serve(self)
|
H A D | FSProxy.py | 10 FSProxyServer -- used on the server side of remote access
17 import server
namespace 267 class FSProxyServer(FSProxyLocal, server.Server):
269 def __init__(self, address, verbose = server.VERBOSE):
271 server.Server.__init__(self, address, verbose)
274 server.Server._close(self)
278 server.Server._serve(self)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
H A D | udpecho.py | 3 # Client and server for udp (datagram) echo.
5 # Usage: udpecho -s [port] (to start a server)
18 server()
26 print 'Usage: udpecho -s [port] (server)'
30 def server():
function 37 print 'udp echo server ready'
40 print 'server received %r from %r' % (data, addr)
|
H A D | throughput.py | 6 # 1) on host_A: throughput -s [port] # start a server
9 # The server will service multiple clients until it is killed.
27 server()
41 def server():
function
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/wsgiref/ |
H A D | simple_server.py | 6 however, and we strongly recommend that you use a "real" web server for
47 """Override server_bind to store the server name."""
74 env = self.server.base_environ.copy()
124 handler.run(self.server.get_app())
143 """Create a new WSGI server listening on `host` and `port` for `app`"""
144 server = server_class((host, port), handler_class)
145 server.set_app(app)
146 return server
|
/device/generic/goldfish/libqemu/ |
H A D | tests.mk | 3 # The first test program is a simple TCP server that will send back
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
H A D | SimpleXMLRPCServer.py | 4 by creating a server and either installing functions, a
15 server = SimpleXMLRPCServer(("localhost", 8000))
16 server.register_function(pow)
17 server.register_function(lambda x,y: x+y, 'add')
18 server.serve_forever()
36 server = SimpleXMLRPCServer(("localhost", 8000))
37 server.register_introspection_functions()
38 server.register_instance(MyFuncs())
39 server.serve_forever()
67 server 701 server = SimpleXMLRPCServer(("localhost", 8000)) variable in class:CGIXMLRPCRequestHandler [all...] |
H A D | CGIHTTPServer.py | 37 """Complete HTTP server with GET, HEAD and POST commands.
160 env['SERVER_NAME'] = self.server.server_name
163 env['SERVER_PORT'] = str(self.server.server_port)
253 self.server.handle_error(self.request, self.client_address)
|
H A D | SocketServer.py | 1 """Generic socket server classes.
3 This module tries to capture the various aspects of defining a server:
25 The classes in this module favor the server type that is simplest to
26 write: a synchronous TCP/IP server. This is bad class design, but
49 stream server is the address family, which is simply repeated in both
50 unix server classes.
52 Forking and threading versions of each type of server can be created
54 instance, a threading UDP server class is created as follows:
60 the behavior of the underlying server mechanism.
64 various versions of the service by combining one of the server classe [all...] |
/device/common/ |
H A D | generate-blob-lists.sh | 24 # It can optionally upload the results to a Gerrit server for review. 32 # Syntax: device/common/generate-blob-lists.sh -f|--force [<server> <branch>] 34 # If the server and branch paramters are both present, the script will upload 35 # new files (if there's been any change) to the mentioned Gerrit server, 116 echo uploading to server $1 branch $2 126 echo uploading to server $1 branch $2
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/ |
H A D | newslist.py | 10 # on your server.
13 # the server rather than just the ones which have appeared since last
16 # When new groups are first created they may appear on your server as
19 # appear in the server's list of 'new groups' at a later date. Hence it
280 # Return list of all groups on server -----------------------------
282 def getallgroups(server):
285 info = server.list()[1]
301 # Return list of new groups on server -----------------------------
303 def getnewgroups(server, treedate):
305 info = server [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
H A D | SocketServer.py | 1 """Generic socket server classes.
3 This module tries to capture the various aspects of defining a server:
25 The classes in this module favor the server type that is simplest to
26 write: a synchronous TCP/IP server. This is bad class design, but
49 stream server is the address family, which is simply repeated in both
50 unix server classes.
52 Forking and threading versions of each type of server can be created
54 instance, a threading UDP server class is created as follows:
60 the behavior of the underlying server mechanism.
64 various versions of the service by combining one of the server classe [all...] |