(cls, pipename, connect = True)
return inst
factory method that creates a server-side ``NamedPipeStream``, over 
        a newly-created *named pipe* of the given name.
        
        :param pipename: the name of the pipe. It will be considered absolute if
                         it starts with ``\\\\.``; otherwise ``\\\\.\\pipe\\rpyc``
                         will be prepended.
        :param connect: whether to connect on creation or not
        
        :returns: a :class:`NamedPipeStream` instance
factory method that creates a server-side ``NamedPipeStream``, over 
        a newly-created *named pipe* of the given name.
        
        :param pipename: the name of the pipe. It will be considered absolute if
                         it starts with ``\\\\.``; otherwise ``\\\\.\\pipe\\rpyc``
                         will be prepended.
        :param connect: whether to connect on creation or not
        
        :returns: a :class:`NamedPipeStream` instance
factory method that creates a server - side NamedPipeStream over a newly - created * named pipe * of the given name . : param pipename : the name of the pipe . It will be considered absolute if it starts with \\\\ . ; otherwise \\\\ . \\ pipe \\ rpyc will be prepended . : param connect : whether to connect on creation or not : returns : a : class : NamedPipeStream instance
def create_server(cls, pipename, connect = True):
        """factory method that creates a server-side ``NamedPipeStream``, over 
        a newly-created *named pipe* of the given name.
        
        :param pipename: the name of the pipe. It will be considered absolute if
                         it starts with ``\\\\.``; otherwise ``\\\\.\\pipe\\rpyc``
                         will be prepended.
        :param connect: whether to connect on creation or not
        
        :returns: a :class:`NamedPipeStream` instance
        """
        if not pipename.startswith("\\\\."):
            pipename = cls.NAMED_PIPE_PREFIX + pipename
        handle = win32pipe.CreateNamedPipe(
            pipename,
            win32pipe.PIPE_ACCESS_DUPLEX,
            win32pipe.PIPE_TYPE_BYTE | win32pipe.PIPE_READMODE_BYTE | win32pipe.PIPE_WAIT,
            1,
            cls.PIPE_BUFFER_SIZE,
            cls.PIPE_BUFFER_SIZE,
            cls.PIPE_IO_TIMEOUT * 1000,
            None
        )
        inst = cls(handle, True)
        if connect:
            inst.connect_server()
        return inst
def create_server ( cls , pipename , connect = True ) : if not pipename . startswith ( "\\\\." ) : pipename = cls . NAMED_PIPE_PREFIX + pipename handle = win32pipe . CreateNamedPipe ( pipename , win32pipe . PIPE_ACCESS_DUPLEX , win32pipe . PIPE_TYPE_BYTE | win32pipe . PIPE_READMODE_BYTE | win32pipe . PIPE_WAIT , 1 , cls . PIPE_BUFFER_SIZE , cls . PIPE_BUFFER_SIZE , cls . PIPE_IO_TIMEOUT * 1000 , None ) inst = cls ( handle , True ) if connect : inst . connect_server ( ) return inst