A safe way of pushing data to the connections is mg_wakeup_server_ex() - see http://cesanta.com/docs/API.shtml See proxy.c <https://github.com/cesanta/mongoose/blob/1389eec784c2efdbf692309fa591f4a61b39e232/examples/proxy.c#L45> example on how that function is used to implement SSE push <https://en.wikipedia.org/wiki/Server-sent_events>.
On Fri, Jul 18, 2014 at 11:18 AM, swati joshi <[email protected]> wrote: > > What is the alternate solution ? If my requirement is to send response a > while after a request is made with a connection pointer. > Is there any way that i can validate if the connection pointer is valid or > no ? > > > >> Thanks, >> Swati >> > -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.
