← Back
Editing: unix_socket_exporter.cpython-312.pyc
� �]�i� � �� � d dl Z d dlZd dlZd dlZddlmZ d dlZd dlm Z d dl mZ d dlZd dl Z d dlZej j! � Z G d� dej$ � Zy)� N� )� interfaces)�ismethodc �� � e Zd ZdZej ej ej ej ej fd�Z d� Zd� Zd� Z d� Zd� Zd� Zd � Zd � Zd� Zdd�Zdd�Zd� Zd� Zd� Zd� Zy )�UnixSocketExportera9 Export method calls through Unix Domain Socket Interface. We take a method to be exported and create a simple wrapper function to call it. This is required as we need the original function to be bound to the original object instance. While the wrapper will be bound to an object we dynamically construct. c �t � || _ d | _ || _ g | _ ddg| _ |r?|j � }t |d d � D ] \ }} t |� | j |<