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)
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)
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)
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)