Commit 132b84fa authored by Simon Morlat's avatar Simon Morlat Committed by Mickaël Turnel

Add accessor to know if a tport is server.

(cherry picked from commit 279f184b)
parent 14fb8fd9
......@@ -11,7 +11,7 @@ dnl information on the package
dnl ---------------------------
dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
AC_INIT([sofia-sip], [1.13.24bc])
AC_INIT([sofia-sip], [1.13.25bc])
......@@ -380,6 +380,9 @@ TPORT_DLL void tport_set_user_data(tport_t *self, void* data);
/** Get Data from tport */
TPORT_DLL void* tport_get_user_data(tport_t *self);
/** Return TRUE if underlying connection was server (created by accept()), FALSE otherwise*/
TPORT_DLL int tport_is_server(tport_t *self);
/* ---------------------------------------------------------------------- */
/* SigComp-related functions */
......@@ -943,6 +943,10 @@ tport_t *tport_alloc_secondary(tport_primary_t *pri,
return self;
int tport_is_server(tport_t *self){
return self->tp_accepted;
/** Create a connected transport object with socket.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment