예제 #1
0
파일: factory.py 프로젝트: fruch/rpyc
def connect(host, port, service=VoidService, config={}):
    """creates a socket-connection to the given host
    host - the hostname to connect to
    port - the TCP port to use
    service - the local service to expose (defaults to Void)
    config - configuration dict"""
    return Connection(service, Channel(SocketStream.connect(host, port)), config=config)
예제 #2
0
def connect(host, port, service=VoidService, config={}):
    """creates a socket-connection to the given host
    host - the hostname to connect to
    port - the TCP port to use
    service - the local service to expose (defaults to Void)
    config - configuration dict"""
    return Connection(service,
                      Channel(SocketStream.connect(host, port)),
                      config=config)
예제 #3
0
파일: factory.py 프로젝트: yaelmi3/rpyc
def connect(host, port, service = VoidService, config = {}, ipv6 = False, keepalive = None):
    """
    creates a socket-connection to the given host and port

    :param host: the hostname to connect to
    :param port: the TCP port to use
    :param service: the local service to expose (defaults to Void)
    :param config: configuration dict
    :param ipv6: whether to use IPv6 or not

    :returns: an RPyC connection
    """
    s = SocketStream.connect(host, port, ipv6 = ipv6, keepalive = keepalive)
    return connect_stream(s, service, config)
예제 #4
0
def connect(host, port, service=VoidService, config={}, ipv6=False):
    """
    creates a socket-connection to the given host and port

    :param host: the hostname to connect to
    :param port: the TCP port to use
    :param service: the local service to expose (defaults to Void)
    :param config: configuration dict
    :param ipv6: whether to use IPv6 or not

    :returns: an RPyC connection
    """
    s = SocketStream.connect(host, port, ipv6=ipv6)
    return connect_stream(s, service, config)