[nanomsg] Re: Event Source handling in HTTP server

  • From: Garrett D'Amore <garrett@xxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Mon, 28 Jan 2019 00:07:14 -0800

I’m not sure what the question here is.

You should be able to reuse the aio, although the callback function associated 
with it is fixed, as is the void * state argument.  

Garrett

From: afshin afzali
Sent: Sunday, January 27, 2019 10:47 PM
To: nanomsg@xxxxxxxxxxxxx
Subject: [nanomsg] Event Source handling in HTTP server

Hi Folks,
I need to add an Event Source service to a developing network server based on 
nng. Right now it uses HTTP supplemental functions to provide static content, 
jsonrpc api and file uploads. Although I am newbie in nng API, I could learn 
its base methodology. In this case my problem is how to keep aio alive to send 
stream updates back to the client. As I learned so far after I finish, it can't 
be use anymore for further responses.

Appreciate all comments,
Afshin,
    

Other related posts: