Gaurav Bansal
2017-10-31 11:34:20 UTC
Hi all,
I have created a session-start-hook (TS_EVENT_HTTP_SSN_START) handler
namely "ssn_start_plugin(TSCont contp, TSEvent event, void *edata)". In
this function, i need TSVConn. Is there any api using which i can get
TSVConn in ssn_start_plugin function using either contp or edata (which is
TSHttpSsn here).
I tried the following approach :
int
ssn_start_plugin(TSCont contp, TSEvent event, void *edata)
{
TSVConn connection;
connection = TSTransformOutputVConnGet(contp);
.....
Can anyone please let me know if this is the right way ? OR is there some
way to get it using TSHttpSsn also.
thanks,
gaurav
I have created a session-start-hook (TS_EVENT_HTTP_SSN_START) handler
namely "ssn_start_plugin(TSCont contp, TSEvent event, void *edata)". In
this function, i need TSVConn. Is there any api using which i can get
TSVConn in ssn_start_plugin function using either contp or edata (which is
TSHttpSsn here).
I tried the following approach :
int
ssn_start_plugin(TSCont contp, TSEvent event, void *edata)
{
TSVConn connection;
connection = TSTransformOutputVConnGet(contp);
.....
Can anyone please let me know if this is the right way ? OR is there some
way to get it using TSHttpSsn also.
thanks,
gaurav