diff options
author | Florin Coras <fcoras@cisco.com> | 2019-08-16 17:48:44 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-08-19 09:22:59 +0000 |
commit | dfb3b8771292e4c863ca266856aa2b5eb7cc7518 (patch) | |
tree | 07d808f098db401d045706cb32994cc2630ea2ed /src/vnet/session/session.h | |
parent | 12f6936cd8f69f17820ef749515fcf4d50001c60 (diff) |
session: add explicit reset api
Type: feature
This can be used to forcefully close a session. It's only available to
builtin applications for now. Transports must support the reset api
otherwise normal close is used.
Change-Id: I5e6d681cbc4c8045385e293e0e9d86fa2bf45849
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.h')
-rw-r--r-- | src/vnet/session/session.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.h b/src/vnet/session/session.h index 5af824ade60..de44bed27c9 100644 --- a/src/vnet/session/session.h +++ b/src/vnet/session/session.h @@ -376,7 +376,9 @@ int session_open (u32 app_index, session_endpoint_t * tep, u32 opaque); int session_listen (session_t * s, session_endpoint_cfg_t * sep); int session_stop_listen (session_t * s); void session_close (session_t * s); +void session_reset (session_t * s); void session_transport_close (session_t * s); +void session_transport_reset (session_t * s); void session_transport_cleanup (session_t * s); int session_send_io_evt_to_thread (svm_fifo_t * f, session_evt_type_t evt_type); |