From 2a82ba152f4b5f28318744371e6a93911fe047c3 Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Tue, 11 Jun 2013 16:04:49 +0100 Subject: [PATCH] Updated GWPROTOCOL structure with new entry points and some documentation --- include/dcb.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/include/dcb.h b/include/dcb.h index a37ccb738..8a5c11cbb 100644 --- a/include/dcb.h +++ b/include/dcb.h @@ -27,7 +27,9 @@ struct session; * Revision History * * Date Who Description - * 1/06/13 Mark Riddoch Initial implementation + * 01/06/13 Mark Riddoch Initial implementation + * 11/06/13 Mark Riddoch Updated GWPROTOCOL structure with new + * entry points * */ */ @@ -37,11 +39,21 @@ struct dcb; typedef struct gw_protocol { /* * The operations that can be performed on the descriptor + * + * read EPOLLIN handler for the socket + * write Gateway data write entry point + * write_ready EPOLLOUT handler for the socket, indicates + * that the socket is ready to send more data + * error EPOLLERR handler for the socket + * hangup EPOLLHUP handler for the socket + * accept Accept handler for listener socket only + * close Gateway close entry point for the socket */ int (*read)(struct dcb *, int); int (*write)(struct dcb *, int); int (*write_ready)(struct dcb *); int (*error)(struct dcb *, int); + int (*hangup)(struct dcb *, int); int (*accept)(struct dcb *, int); int (*close)(struct dcb *); } GWPROTOCOL;