From be02640037da238e49a21244ba42c11a3877fb9a Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Fri, 28 Feb 2014 05:42:24 +0000 Subject: Fixed #1699: Transport state callback to report transport shutdown events (Thanks to Johan Lantz for the discussion and preliminary patch). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4773 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsip/sip_transport.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pjsip/include/pjsip/sip_transport.h') diff --git a/pjsip/include/pjsip/sip_transport.h b/pjsip/include/pjsip/sip_transport.h index 4ff3597c..eb9e4dbc 100644 --- a/pjsip/include/pjsip/sip_transport.h +++ b/pjsip/include/pjsip/sip_transport.h @@ -1388,9 +1388,15 @@ typedef enum pjsip_transport_state PJSIP_TP_STATE_CONNECTED, /**< Transport connected, applicable only to connection-oriented transports such as TCP and TLS. */ - PJSIP_TP_STATE_DISCONNECTED /**< Transport disconnected, applicable + PJSIP_TP_STATE_DISCONNECTED, /**< Transport disconnected, applicable only to connection-oriented transports such as TCP and TLS. */ + PJSIP_TP_STATE_SHUTDOWN, /**< Transport shutdown, either + due to TCP/TLS disconnect error + from the network, or when shutdown + is initiated by PJSIP itself. */ + PJSIP_TP_STATE_DESTROY, /**< Transport destroy, when transport + is about to be destroyed. */ } pjsip_transport_state; -- cgit v1.2.3