/[lwip]/lwip/src/include/lwip/tcp.h
ViewVC logotype

Diff of /lwip/src/include/lwip/tcp.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jani, Fri Feb 7 10:13:51 2003 UTC revision 1.13 by davidhaas, Tue Feb 18 19:27:48 2003 UTC
# Line 44  Line 44 
44    
45  #include "lwip/err.h"  #include "lwip/err.h"
46    
 #include "lwip/event.h"  
   
47  struct tcp_pcb;  struct tcp_pcb;
48    
49  /* Functions for interfacing with TCP: */  /* Functions for interfacing with TCP: */
# Line 307  struct tcp_pcb_listen { Line 305  struct tcp_pcb_listen {
305  };  };
306    
307  #if LWIP_EVENT_API  #if LWIP_EVENT_API
308    
309    enum lwip_event {
310      LWIP_EVENT_ACCEPT,
311      LWIP_EVENT_SENT,
312      LWIP_EVENT_RECV,
313      LWIP_EVENT_CONNECTED,
314      LWIP_EVENT_POLL,
315      LWIP_EVENT_ERR
316    };
317    
318    err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
319                         enum lwip_event,
320                         struct pbuf *p,
321                         u16_t size,
322                         err_t err);
323    
324  #define TCP_EVENT_ACCEPT(pcb,err,ret)    ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\  #define TCP_EVENT_ACCEPT(pcb,err,ret)    ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\
325                                                      LWIP_EVENT_ACCEPT, NULL, 0, err)                                                      LWIP_EVENT_ACCEPT, NULL, 0, err)
326  #define TCP_EVENT_SENT(pcb,space,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\  #define TCP_EVENT_SENT(pcb,space,ret) ret = lwip_tcp_event((pcb)->callback_arg, (pcb),\

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26