From 3585000ca027740dbdb4599f4991cd2bf562e2f2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 20 Oct 2017 17:03:12 -0700 Subject: fixes #112 Need to move some stuff from socket to message queues --- src/core/protocol.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/core/protocol.h') diff --git a/src/core/protocol.h b/src/core/protocol.h index 0c0d93ce..253452d8 100644 --- a/src/core/protocol.h +++ b/src/core/protocol.h @@ -74,15 +74,17 @@ struct nni_proto_sock_ops { // it can signal the socket worker threads to exit. void (*sock_close)(void *); - // Receive filter. This may be NULL, but if it isn't, then + // Send a message. + void (*sock_send)(void *, nni_aio *); + + // Receive a message. + void (*sock_recv)(void *, nni_aio *); + + // Message filter. This may be NULL, but if it isn't, then // messages coming into the system are routed here just before being - // delivered to the application. To drop the message, the prtocol + // delivered to the application. To drop the message, the protocol // should return NULL, otherwise the message (possibly modified). - nni_msg *(*sock_rfilter)(void *, nni_msg *); - - // Send filter. This may be NULL, but if it isn't, then messages - // here are filtered just after they come from the application. - nni_msg *(*sock_sfilter)(void *, nni_msg *); + nni_msg *(*sock_filter)(void *, nni_msg *); // Options. Must not be NULL. Final entry should have NULL name. nni_proto_sock_option *sock_options; -- cgit v1.2.3-70-g09d2