Python: module telemetry.internal.platform.msr_server_win

telemetry.internal.platform.msr_server_win | index telemetry/internal/platform/msr_server_win.py

`A server that serves MSR values over TCP. Takes a port as its sole parameter.
The reference client for this server is msr_power_monitor.MsrPowerMonitor.
Must be run as Administrator. We use TCP instead of named pipes or another IPC
to avoid dealing with the pipe security mechanisms. We take the port as a
parameter instead of choosing one, because it's hard to communicate the port
number across integrity levels.
Requires WinRing0 to be installed in the Python directory.
msr_power_monitor.MsrPowerMonitor does this if needed.`

Modules
`` |  |
SocketServer argparse | ctypes os | struct sys |

Classes
`` |  | SocketServer.StreamRequestHandler(SocketServer.BaseRequestHandler) MsrRequestHandler exceptions.OSError(exceptions.EnvironmentError) WinRing0Error
class MsrRequestHandler(SocketServer.StreamRequestHandler)
`` |  | Method resolution order: MsrRequestHandler SocketServer.StreamRequestHandler SocketServer.BaseRequestHandler Methods defined here: handle(self) Methods inherited from SocketServer.StreamRequestHandler: finish(self) setup(self) Data and other attributes inherited from SocketServer.StreamRequestHandler: disable_nagle_algorithm = False rbufsize = -1 timeout = None wbufsize = 0 Methods inherited from SocketServer.BaseRequestHandler: __init__(self, request, client_address, server)
class WinRing0Error(exceptions.OSError)
`` |  | Method resolution order: WinRing0Error exceptions.OSError exceptions.EnvironmentError exceptions.StandardError exceptions.Exception exceptions.BaseException __builtin__.object Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Methods inherited from exceptions.OSError: __init__(...) `x.__init__(...) initializes x; see help(type(x)) for signature` Data and other attributes inherited from exceptions.OSError: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.EnvironmentError: __reduce__(...) __str__(...) `x.__str__() <==> str(x)` Data descriptors inherited from exceptions.EnvironmentError: errno `exception errno` filename `exception filename` strerror `exception strerror` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message

Functions
`` |  | main()

Data
`` |  | WINRING0_STATUS_MESSAGES = ('No error', 'Unsupported platform', 'Driver not loaded. You may need to run as Administrator', 'Driver not found', 'Driver unloaded by other process', 'Driver not loaded because of executing on Network Drive', 'Unknown error')