HomeSort by relevance Sort by last modified time
    Searched refs:asyncore (Results 1 - 25 of 26) sorted by null

1 2

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_asyncore.py 1 import asyncore namespace
45 raise asyncore.ExitNow()
96 # bubbles all the way up through asyncore read/write/_exception calls
98 self.assertRaises(asyncore.ExitNow, asyncore.read, tr1)
99 self.assertRaises(asyncore.ExitNow, asyncore.write, tr1)
100 self.assertRaises(asyncore.ExitNow, asyncore._exception, tr1)
105 asyncore.read(tr2
    [all...]
test_asynchat.py 3 import asyncore, asynchat, socket, time namespace
122 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
153 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
174 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
186 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
196 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
207 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
219 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
test_poplib.py 7 import asyncore namespace
107 class DummyPOP3Server(asyncore.dispatcher, threading.Thread):
113 asyncore.dispatcher.__init__(self)
130 while self.active and asyncore.socket_map:
132 asyncore.loop(timeout=0.1, count=1)
134 asyncore.close_all(ignore_all=True)
test_smtplib.py 1 import asyncore namespace
111 poll_fun = asyncore.poll2
113 poll_fun = asyncore.poll
116 while asyncore.socket_map and n > 0:
117 poll_fun(0.01, asyncore.socket_map)
134 asyncore.close_all()
232 # in asyncore. This sleep might help, but should really be fixed
test_ftplib.py 7 import asyncore namespace
207 class DummyFTPServer(asyncore.dispatcher, threading.Thread):
213 asyncore.dispatcher.__init__(self)
230 while self.active and asyncore.socket_map:
232 asyncore.loop(timeout=0.1, count=1)
234 asyncore.close_all(ignore_all=True)
261 class SSLConnection(object, asyncore.dispatcher):
262 """An asyncore.dispatcher subclass supporting TLS/SSL."""
regrtest.py 764 'os.environ', 'sys.path', 'asyncore.socket_map',
808 asyncore = sys.modules.get('asyncore')
810 return asyncore and asyncore.socket_map.copy() or {}
812 asyncore = sys.modules.get('asyncore')
813 if asyncore is not None:
814 asyncore.close_all(ignore_all=True)
815 asyncore.socket_map.update(saved_map
    [all...]
test_ssl.py 6 import asyncore namespace
601 class EchoServer(asyncore.dispatcher):
603 class ConnectionHandler(asyncore.dispatcher_with_send):
606 asyncore.dispatcher_with_send.__init__(self, conn)
652 asyncore.dispatcher.__init__(self)
701 asyncore.loop(0.05)
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_asyncore.py 1 import asyncore namespace
45 raise asyncore.ExitNow()
96 # bubbles all the way up through asyncore read/write/_exception calls
98 self.assertRaises(asyncore.ExitNow, asyncore.read, tr1)
99 self.assertRaises(asyncore.ExitNow, asyncore.write, tr1)
100 self.assertRaises(asyncore.ExitNow, asyncore._exception, tr1)
105 asyncore.read(tr2
    [all...]
test_asynchat.py 3 import asyncore, asynchat, socket, time namespace
122 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
153 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
174 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
186 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
196 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
207 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
219 asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
test_poplib.py 7 import asyncore namespace
107 class DummyPOP3Server(asyncore.dispatcher, threading.Thread):
113 asyncore.dispatcher.__init__(self)
130 while self.active and asyncore.socket_map:
132 asyncore.loop(timeout=0.1, count=1)
134 asyncore.close_all(ignore_all=True)
test_smtplib.py 1 import asyncore namespace
111 poll_fun = asyncore.poll2
113 poll_fun = asyncore.poll
116 while asyncore.socket_map and n > 0:
117 poll_fun(0.01, asyncore.socket_map)
134 asyncore.close_all()
232 # in asyncore. This sleep might help, but should really be fixed
test_ftplib.py 7 import asyncore namespace
207 class DummyFTPServer(asyncore.dispatcher, threading.Thread):
213 asyncore.dispatcher.__init__(self)
230 while self.active and asyncore.socket_map:
232 asyncore.loop(timeout=0.1, count=1)
234 asyncore.close_all(ignore_all=True)
261 class SSLConnection(object, asyncore.dispatcher):
262 """An asyncore.dispatcher subclass supporting TLS/SSL."""
regrtest.py 764 'os.environ', 'sys.path', 'asyncore.socket_map',
808 asyncore = sys.modules.get('asyncore')
810 return asyncore and asyncore.socket_map.copy() or {}
812 asyncore = sys.modules.get('asyncore')
813 if asyncore is not None:
814 asyncore.close_all(ignore_all=True)
815 asyncore.socket_map.update(saved_map
    [all...]
  /external/chromium_org/third_party/tlslite/tlslite/integration/
TLSAsyncDispatcherMixIn.py 1 """TLS Lite + asyncore."""
4 import asyncore namespace
11 L{asyncore.dispatcher} to add TLS support.
26 To use this class, you must combine it with an asyncore.dispatcher,
67 in asyncore.dispatcher, which will call close() on this class. The
70 asyncore.dispatcher.close() to be called, which closes the socket
71 and removes this instance from the asyncore loop.
115 asyncore.dispatcher.close(self)
139 asyncore.dispatcher.close(self
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
asynchat.py 50 import asyncore namespace
55 class async_chat (asyncore.dispatcher):
79 asyncore.dispatcher.__init__ (self, sock, map)
smtpd.py 78 import asyncore namespace
276 class SMTPServer(asyncore.dispatcher):
280 asyncore.dispatcher.__init__(self)
288 # cleanup asyncore.socket_map before raising
553 asyncore.loop()
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
asynchat.py 50 import asyncore namespace
55 class async_chat (asyncore.dispatcher):
79 asyncore.dispatcher.__init__ (self, sock, map)
smtpd.py 78 import asyncore namespace
276 class SMTPServer(asyncore.dispatcher):
280 asyncore.dispatcher.__init__(self)
288 # cleanup asyncore.socket_map before raising
553 asyncore.loop()
  /external/chromium/net/tools/testserver/
xmppserver.py 13 import asyncore namespace
20 # by asyncore by forwarding to an internal object via __getattr__.
383 asyncore.dispatcher.__init__(self, sock, socket_map)
478 class XmppServer(asyncore.dispatcher):
488 asyncore.loop(30.0, False, socket_map)
492 asyncore.dispatcher.__init__(self, None, socket_map)
511 asyncore.dispatcher.close(self)
testserver.py 16 import asyncore namespace
151 """This is a merge of asyncore.loop() and SocketServer.serve_forever().
157 Adapted from asyncore.read() et al.
166 except (asyncore.ExitNow, KeyboardInterrupt, SystemExit):
200 asyncore.dispatcher.handle_read_event)
204 asyncore.dispatcher.handle_write_event)
208 asyncore.dispatcher.handle_expt_event)
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/bin/
smtpd.py 78 import asyncore namespace
276 class SMTPServer(asyncore.dispatcher):
280 asyncore.dispatcher.__init__(self)
288 # cleanup asyncore.socket_map before raising
553 asyncore.loop()
  /prebuilts/python/linux-x86/2.7.5/bin/
smtpd.py 78 import asyncore namespace
276 class SMTPServer(asyncore.dispatcher):
280 asyncore.dispatcher.__init__(self)
288 # cleanup asyncore.socket_map before raising
553 asyncore.loop()
  /external/chromium_org/sync/tools/testserver/
sync_testserver.py 13 import asyncore namespace
74 """This is a merge of asyncore.loop() and SocketServer.serve_forever().
80 Adapted from asyncore.read() et al.
90 except (asyncore.ExitNow, KeyboardInterrupt, SystemExit):
124 asyncore.dispatcher.handle_read_event)
128 asyncore.dispatcher.handle_write_event)
132 asyncore.dispatcher.handle_expt_event)
xmppserver.py 12 import asyncore namespace
19 # by asyncore by forwarding to an internal object via __getattr__.
395 asyncore.dispatcher.__init__(self, sock, socket_map)
494 class XmppServer(asyncore.dispatcher):
504 asyncore.loop(30.0, False, socket_map)
516 asyncore.dispatcher.__init__(self, None, socket_map)
540 asyncore.dispatcher.close(self)
  /external/chromium_org/chrome/test/pyautolib/
remote_inspector_client.py 39 import asyncore namespace
101 class _DevToolsSocketClient(asyncore.dispatcher):
129 asyncore.dispatcher.__init__(self)
181 """Called if a writable socket can be written; overridden from asyncore."""
199 """Called when a socket can be read; overridden from asyncore."""
241 """Called when the socket is closed; overridden from asyncore."""
250 """Determines if writes can occur for this socket; overridden from asyncore.
259 """Called when out-of-band data exists; overridden from asyncore."""
263 """Called when an exception is raised; overridden from asyncore."""
271 asyncore.dispatcher.handle_error(self
    [all...]

Completed in 562 milliseconds

1 2