示例#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

        GSITCPSocketServer.__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

        GSITCPSocketServer.__init__(
            self,
            addr,
            RequestHandler,
            self.config.channel_mode,
            self.config.delegation_mode,
            tcpAttr=self.config.tcpAttr,
        )
示例#3
0
    def get_request(self):
        sock, addr = GSITCPSocketServer.get_request(self)

        return sock, addr
示例#4
0
    def get_request(self):
        sock, addr = GSITCPSocketServer.get_request(self)

        return sock, addr