From 8532d0d152221656bf4cb8aaa38d8f8877eccd06 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sat, 16 Jun 2007 15:04:50 +0000 Subject: [PATCH] Added comments for the callback functions included in struct tcp_listen_pcb --- src/include/lwip/tcp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index c300681d..455f3fe5 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -374,7 +374,13 @@ struct tcp_pcb_listen { TCP_PCB_COMMON(struct tcp_pcb_listen); #if LWIP_CALLBACK_API - /* Function to call when a listener has been connected. */ + /* Function to call when a listener has been connected. + * @param arg user-supplied argument (tcp_pcb.callback_arg) + * @param pcb a new tcp_pcb that now is connected + * @param err an error argument (TODO: that is current always ERR_OK?) + * @return ERR_OK: accept the new connection, + * any other err_t abortsthe new connection + */ err_t (* accept)(void *arg, struct tcp_pcb *newpcb, err_t err); #endif /* LWIP_CALLBACK_API */ };