I never looked at the zmq C API but :
- You should look at there http://api.zeromq.org/zmq_recv.html function
to substitute it with your own read callback.
In one word : You should exclude there socket managment to replace it
with the APE one.
Le 01/10/2010 03:33, Andrew Thompson a écrit :
On Fri, Oct 01, 2010 at 03:26:22AM +0200, Catel Anthony wrote:
Just a note in your commit.
I think that you should have used the "STREAM_DELEGATE" APE socket for
your zmq socket (look at dns.c). Which avoid hacking the "core"
directly. That allow you to register some external callback on the
socket event.
Beautiful! I saw that socket type but I didn't quite figure out how to
use it - that would make things much nicer.
On a related note, can I safely use the data field in the ape_socket
struct for arbitrary socket information (in this case a pointer to the
zmq socket itself) or is there a better way to do that?
Andrew
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/