nabto_client_tcp_tunnel_close()

DESCRIPTION

Close a TCP tunnel.

This closes the tcp tunnel.

  • The listener is closed.
  • Each ongoing tunnelled TCP connection is aborted.

Future status:

  • NABTO_CLIENT_EC_OK if the tunnel was closed.
  • NABTO_CLIENT_EC_STOPPED if the tunnel is stopped.
  • NABTO_CLIENT_EC_INVALID_STATE if the tunnel has not been opened yet.

DECLARATION

NABTO_CLIENT_DECL_PREFIX void NABTO_CLIENT_API
nabto_client_tcp_tunnel_close(NabtoClientTcpTunnel* tunnel, NabtoClientFuture* future)

PARAMETERS

tunnel:
[in] the tunnel to close.
future:
[in] the future which resolves with the status of the operation.