Linux web-conference.aiou.edu.pk 5.4.0-205-generic #225-Ubuntu SMP Fri Jan 10 22:23:35 UTC 2025 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 52.14.191.34
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
twisted /
internet /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
iocpreactor
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
__init__.py
521
B
-rw-r--r--
_baseprocess.py
1.87
KB
-rw-r--r--
_dumbwin32proc.py
12.8
KB
-rw-r--r--
_glibbase.py
12.51
KB
-rw-r--r--
_idna.py
1.36
KB
-rw-r--r--
_newtls.py
9.11
KB
-rw-r--r--
_pollingfile.py
8.77
KB
-rw-r--r--
_posixserialport.py
1.95
KB
-rw-r--r--
_posixstdio.py
4.58
KB
-rw-r--r--
_producer_helpers.py
3.7
KB
-rw-r--r--
_resolver.py
8.33
KB
-rw-r--r--
_signals.py
2.65
KB
-rw-r--r--
_sslverify.py
70.09
KB
-rw-r--r--
_threadedselect.py
11.49
KB
-rw-r--r--
_win32serialport.py
4.63
KB
-rw-r--r--
_win32stdio.py
3.13
KB
-rw-r--r--
abstract.py
18.82
KB
-rw-r--r--
address.py
5.12
KB
-rw-r--r--
asyncioreactor.py
10.31
KB
-rw-r--r--
base.py
43.22
KB
-rw-r--r--
cfreactor.py
17.09
KB
-rw-r--r--
default.py
1.9
KB
-rw-r--r--
defer.py
69.52
KB
-rw-r--r--
endpoints.py
75.4
KB
-rw-r--r--
epollreactor.py
8.29
KB
-rw-r--r--
error.py
12.35
KB
-rw-r--r--
fdesc.py
3.15
KB
-rw-r--r--
gireactor.py
5.98
KB
-rw-r--r--
glib2reactor.py
1.09
KB
-rw-r--r--
gtk2reactor.py
3.53
KB
-rw-r--r--
gtk3reactor.py
2.2
KB
-rw-r--r--
inotify.py
14.35
KB
-rw-r--r--
interfaces.py
94.25
KB
-rw-r--r--
kqreactor.py
10.05
KB
-rw-r--r--
main.py
1.03
KB
-rw-r--r--
pollreactor.py
5.88
KB
-rw-r--r--
posixbase.py
25.74
KB
-rw-r--r--
process.py
37.98
KB
-rw-r--r--
protocol.py
26.5
KB
-rw-r--r--
pyuisupport.py
817
B
-rw-r--r--
reactor.py
1.82
KB
-rw-r--r--
selectreactor.py
6.07
KB
-rw-r--r--
serialport.py
2.26
KB
-rw-r--r--
ssl.py
8.25
KB
-rw-r--r--
stdio.py
1.02
KB
-rw-r--r--
task.py
30.39
KB
-rw-r--r--
tcp.py
53.62
KB
-rw-r--r--
threads.py
3.86
KB
-rw-r--r--
tksupport.py
2
KB
-rw-r--r--
udp.py
18.13
KB
-rw-r--r--
unix.py
21.45
KB
-rw-r--r--
utils.py
7.69
KB
-rw-r--r--
win32eventreactor.py
14.84
KB
-rw-r--r--
wxreactor.py
5.14
KB
-rw-r--r--
wxsupport.py
1.33
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : wxreactor.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ This module provides wxPython event loop support for Twisted. In order to use this support, simply do the following:: | from twisted.internet import wxreactor | wxreactor.install() Then, when your root wxApp has been created:: | from twisted.internet import reactor | reactor.registerWxApp(yourApp) | reactor.run() Then use twisted.internet APIs as usual. Stop the event loop using reactor.stop(), not yourApp.ExitMainLoop(). IMPORTANT: tests will fail when run under this reactor. This is expected and probably does not reflect on the reactor's ability to run real applications. """ try: from queue import Empty, Queue except ImportError: from Queue import Empty, Queue try: from wx import App as wxApp, CallAfter as wxCallAfter, \ Timer as wxTimer except ImportError: # older version of wxPython: from wxPython.wx import wxApp, wxCallAfter, wxTimer from twisted.python import log, runtime from twisted.internet import _threadedselect class ProcessEventsTimer(wxTimer): """ Timer that tells wx to process pending events. This is necessary on macOS, probably due to a bug in wx, if we want wxCallAfters to be handled when modal dialogs, menus, etc. are open. """ def __init__(self, wxapp): wxTimer.__init__(self) self.wxapp = wxapp def Notify(self): """ Called repeatedly by wx event loop. """ self.wxapp.ProcessPendingEvents() class WxReactor(_threadedselect.ThreadedSelectReactor): """ wxPython reactor. wxPython drives the event loop, select() runs in a thread. """ _stopping = False def registerWxApp(self, wxapp): """ Register wxApp instance with the reactor. """ self.wxapp = wxapp def _installSignalHandlersAgain(self): """ wx sometimes removes our own signal handlers, so re-add them. """ try: # make _handleSignals happy: import signal signal.signal(signal.SIGINT, signal.default_int_handler) except ImportError: return self._handleSignals() def stop(self): """ Stop the reactor. """ if self._stopping: return self._stopping = True _threadedselect.ThreadedSelectReactor.stop(self) def _runInMainThread(self, f): """ Schedule function to run in main wx/Twisted thread. Called by the select() thread. """ if hasattr(self, "wxapp"): wxCallAfter(f) else: # wx shutdown but twisted hasn't self._postQueue.put(f) def _stopWx(self): """ Stop the wx event loop if it hasn't already been stopped. Called during Twisted event loop shutdown. """ if hasattr(self, "wxapp"): self.wxapp.ExitMainLoop() def run(self, installSignalHandlers=True): """ Start the reactor. """ self._postQueue = Queue() if not hasattr(self, "wxapp"): log.msg("registerWxApp() was not called on reactor, " "registering my own wxApp instance.") self.registerWxApp(wxApp(False)) # start select() thread: self.interleave(self._runInMainThread, installSignalHandlers=installSignalHandlers) if installSignalHandlers: self.callLater(0, self._installSignalHandlersAgain) # add cleanup events: self.addSystemEventTrigger("after", "shutdown", self._stopWx) self.addSystemEventTrigger("after", "shutdown", lambda: self._postQueue.put(None)) # On macOS, work around wx bug by starting timer to ensure # wxCallAfter calls are always processed. We don't wake up as # often as we could since that uses too much CPU. if runtime.platform.isMacOSX(): t = ProcessEventsTimer(self.wxapp) t.Start(2) # wake up every 2ms self.wxapp.MainLoop() wxapp = self.wxapp del self.wxapp if not self._stopping: # wx event loop exited without reactor.stop() being # called. At this point events from select() thread will # be added to _postQueue, but some may still be waiting # unprocessed in wx, thus the ProcessPendingEvents() # below. self.stop() wxapp.ProcessPendingEvents() # deal with any queued wxCallAfters while 1: try: f = self._postQueue.get(timeout=0.01) except Empty: continue else: if f is None: break try: f() except: log.err() def install(): """ Configure the twisted mainloop to be run inside the wxPython mainloop. """ reactor = WxReactor() from twisted.internet.main import installReactor installReactor(reactor) return reactor __all__ = ['install']
Close