Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Use of esl_recv_event


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
support at telium.io
Guest





PostPosted: Sun Nov 14, 2021 3:31 am    Post subject: [Freeswitch-users] Use of esl_recv_event Reply with quote

I’m looking at how to use the esl_recv_event function in esl.c and the docs are missing some details. Could someone tell me:

<![if !supportLists]>1. <![endif]>Do I have to lock a mutex before accessing this function (since it dequeues an event)
<![if !supportLists]>2. <![endif]>The third parameter is a ptr to a ptr to a struct. So, do I have to allocate a struct before calling (to get the data)? Or will the lib allocate the struct and I have to free it?

Comments from esl.c:

/*!
\brief Poll the handle's socket until an event is received or a connection error occurs
\param handle Handle to poll
\param check_q If set to 1, will check the handle queue (handle->race_event) and return the last event from it
\param[out] save_event If this is not NULL, will return the event received
*/
ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_event_t **save_event);
/*!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services