Ejemplo n.º 1
0
    def __init__(self,
                 addr=('localhost', 8000),
                 RequestHandler=SOAPRequestHandler,
                 log=0,
                 encoding='UTF-8',
                 config=Config,
                 namespace=None):

        # Test the encoding, raising an exception if it's not known
        if encoding != None:
            ''.encode(encoding)

        self.namespace = namespace
        self.objmap = {}
        self.funcmap = {}
        self.encoding = encoding
        self.config = config
        self.log = log

        self.allow_reuse_address = 1

        ThreadingGSITCPSocketServer.__init__(self,
                                             addr,
                                             RequestHandler,
                                             self.config.channel_mode,
                                             self.config.delegation_mode,
                                             tcpAttr=self.config.tcpAttr)
    def __init__(
        self,
        addr=("localhost", 8000),
        RequestHandler=SOAPRequestHandler,
        log=0,
        encoding="UTF-8",
        config=Config,
        namespace=None,
    ):

        # Test the encoding, raising an exception if it's not known
        if encoding != None:
            "".encode(encoding)

        self.namespace = namespace
        self.objmap = {}
        self.funcmap = {}
        self.encoding = encoding
        self.config = config
        self.log = log

        self.allow_reuse_address = 1

        ThreadingGSITCPSocketServer.__init__(
            self,
            addr,
            RequestHandler,
            self.config.channel_mode,
            self.config.delegation_mode,
            tcpAttr=self.config.tcpAttr,
        )
Ejemplo n.º 3
0
    def get_request(self):
        sock, addr = ThreadingGSITCPSocketServer.get_request(self)

        return sock, addr
Ejemplo n.º 4
0
    def get_request(self):
        sock, addr = ThreadingGSITCPSocketServer.get_request(self)

        return sock, addr