Re: [Sofia-sip-devel] User callback for connection close

2007-11-07 Thread Pekka Pessi
2007/11/6, Ge@@ru <[EMAIL PROTECTED]>: > I think that tport_close could not call tport_pend callbacks because > tport_close doesn't known what is error, only close socket, etc. > Call tport_pend callback on tport_close it is possible only if we save > an error code value on tport struct. In fact, o

Re: [Sofia-sip-devel] User callback for connection close

2007-11-06 Thread Ge@@ru
I think that tport_close could not call tport_pend callbacks because tport_close doesn't known what is error, only close socket, etc. Call tport_pend callback on tport_close it is possible only if we save an error code value on tport struct. In fact, on tport_close there is a -1 value on tport_repo

Re: [Sofia-sip-devel] User callback for connection close

2007-11-05 Thread Pekka Pessi
2007/11/5, Ge@@ru <[EMAIL PROTECTED]>: > i'm using sofia 1.12.7 and i trying to use tport_pend to handled close > of connection, but i have some problems: > > What i done on my sources: > > On tport object recover from incoming request a set this params: > tport_set_params(tport, TPTAG_KEEPALIVE(1

[Sofia-sip-devel] User callback for connection close

2007-11-05 Thread Ge@@ru
Hi, i'm using sofia 1.12.7 and i trying to use tport_pend to handled close of connection, but i have some problems: What i done on my sources: On tport object recover from incoming request a set this params: tport_set_params(tport, TPTAG_KEEPALIVE(1), TPTAG_PINGPONG