ITransportClient

This module contains the interface for any Kortex API Transport which the RouterClient takes in argument to function properly.

class ITransportClient

Abstract interface that all Kortex API Transports have to reimplement.

abstract connect(host: str, port: int)

Attempts to connect the transport to the Kortex device.

Parameters
  • host (str) – Address of the Kortex device to connect to.

  • port (int) – Port of the Kortex device to connect to.

abstract disconnect()

Attempts to disconnect the transport from the Kortex device it is connected to.

Does nothing if the transport is not connected.

abstract getMaxTxBufferSize() int

Gets the maximum transfer buffer size, in bytes.