connect#

gwpy.io.nds2.connect(host: str, port: int | None = None) connection[source]#

Open an nds2.connection to a given host and port.

Parameters:
hoststr

Name of server with which to connect.

portint, optional

Connection port.

Returns:
connectionnds2.connection

A new open connection to the given NDS host.