Python SocketServer.UnixStreamServer() Examples

The following are 8 code examples of SocketServer.UnixStreamServer(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module SocketServer , or try the search function .
Example #1
Source File: Server.py    From p2pool-n with GNU General Public License v3.0 6 votes vote down vote up
def __init__(self, addr = 8000,
            RequestHandler = SOAPRequestHandler, log = 0, encoding = 'UTF-8',
            config = Config, namespace = None, ssl_context = None):
    
            # Test the encoding, raising an exception if it's not known
            if encoding != None:
                ''.encode(encoding)
    
            if ssl_context != None and not config.SSLserver:
                raise AttributeError, \
                    "SSL server not supported by this Python installation"
    
            self.namespace          = namespace
            self.objmap             = {}
            self.funcmap            = {}
            self.ssl_context        = ssl_context
            self.encoding           = encoding
            self.config             = config
            self.log                = log
    
            self.allow_reuse_address= 1
    
            SocketServer.UnixStreamServer.__init__(self, str(addr), RequestHandler) 
Example #2
Source File: test_socketserver.py    From ironpython2 with Apache License 2.0 5 votes vote down vote up
def test_UnixStreamServer(self):
        self.run_server(SocketServer.UnixStreamServer,
                        SocketServer.StreamRequestHandler,
                        self.stream_examine) 
Example #3
Source File: test_socketserver.py    From BinderFilter with MIT License 5 votes vote down vote up
def test_UnixStreamServer(self):
            self.run_server(SocketServer.UnixStreamServer,
                            SocketServer.StreamRequestHandler,
                            self.stream_examine) 
Example #4
Source File: test_socketserver.py    From oss-ftp with MIT License 5 votes vote down vote up
def test_UnixStreamServer(self):
        self.run_server(SocketServer.UnixStreamServer,
                        SocketServer.StreamRequestHandler,
                        self.stream_examine) 
Example #5
Source File: test_socketserver.py    From gcblue with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def test_UnixStreamServer(self):
        self.run_server(SocketServer.UnixStreamServer,
                        SocketServer.StreamRequestHandler,
                        self.stream_examine) 
Example #6
Source File: test_socketserver.py    From CTFCrackTools-V2 with GNU General Public License v3.0 5 votes vote down vote up
def test_UnixStreamServer(self):
            self.run_server(SocketServer.UnixStreamServer,
                            SocketServer.StreamRequestHandler,
                            self.stream_examine) 
Example #7
Source File: sshtunnel.py    From sshtunnel with MIT License 5 votes vote down vote up
def __init__(self, *args, **kwargs):
        self.logger = create_logger(kwargs.pop('logger', None))
        self.tunnel_ok = queue.Queue()
        UnixStreamServer.__init__(self, *args, **kwargs) 
Example #8
Source File: test_socketserver.py    From CTFCrackTools with GNU General Public License v3.0 5 votes vote down vote up
def test_UnixStreamServer(self):
            self.run_server(SocketServer.UnixStreamServer,
                            SocketServer.StreamRequestHandler,
                            self.stream_examine)