summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2014-02-28 05:42:24 +0000
committerLiong Sauw Ming <ming@teluu.com>2014-02-28 05:42:24 +0000
commitbe02640037da238e49a21244ba42c11a3877fb9a (patch)
tree05e10465c60b5d0e529f34d74ea1b3611e024ca7 /pjsip/include
parent4f25cc42af6561d0b9a759526a6ea97499edb8ae (diff)
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
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsip/sip_transport.h8
1 files changed, 7 insertions, 1 deletions
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;