qp.Endpoint¶
- class Endpoint(host, port)[source]¶
Bases:
objectThe address the controller dials to bring up a connection to a coprocessor.
The coprocessor listens on
port; the controller connects tohost:port. Some transports, such as"rdma", require an endpoint on every coprocessor; others, such as"memcpy", do not use a network endpoint. For a coprocessor co-located with the controller on a transport that does require one, use localhost ("127.0.0.1").- Parameters:
host (str) – The address the controller connects to, e.g.
"192.0.2.11"or"127.0.0.1".port (int) – The port the coprocessor listens on for the out-of-band connection handshake. This is the handshake channel that exchanges the information needed to set up the data path.
See also
Example
>>> ep = qp.Endpoint("127.0.0.1", 7760) >>> (ep.host, ep.port) ('127.0.0.1', 7760)
Attributes
The address the controller connects to, e.g.
"192.0.2.11"or"127.0.0.1".The port the coprocessor listens on for the out-of-band connection handshake.
- host = <dataclasses._MISSING_TYPE object>¶
The address the controller connects to, e.g.
"192.0.2.11"or"127.0.0.1".
- port = <dataclasses._MISSING_TYPE object>¶
The port the coprocessor listens on for the out-of-band connection handshake. This is the handshake channel that exchanges the information needed to set up the data path.