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

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

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

revision 1.5 by jani, Fri Jan 24 09:24:44 2003 UTC revision 1.6 by davidhaas, Thu Feb 6 22:18:56 2003 UTC
# Line 62  enum netconn_state { Line 62  enum netconn_state {
62    NETCONN_CLOSE    NETCONN_CLOSE
63  };  };
64    
65    enum netconn_evt {
66      NETCONN_EVT_RCVPLUS,
67      NETCONN_EVT_RCVMINUS,
68      NETCONN_EVT_SENDPLUS,
69      NETCONN_EVT_SENDMINUS
70    };
71    
72  struct netbuf {  struct netbuf {
73    struct pbuf *p, *ptr;    struct pbuf *p, *ptr;
74    struct ip_addr *fromaddr;    struct ip_addr *fromaddr;
# Line 81  struct netconn { Line 88  struct netconn {
88    sys_mbox_t recvmbox;    sys_mbox_t recvmbox;
89    sys_mbox_t acceptmbox;    sys_mbox_t acceptmbox;
90    sys_sem_t sem;    sys_sem_t sem;
91      int socket;
92      u16_t recv_avail;
93      void (* callback)(struct netconn *, enum netconn_evt, u16_t len);
94  };  };
95    
96  /* Network buffer functions: */  /* Network buffer functions: */
# Line 108  u16_t             netbuf_fromport (struc Line 118  u16_t             netbuf_fromport (struc
118    
119  /* Network connection functions: */  /* Network connection functions: */
120  struct netconn *  netconn_new     (enum netconn_type type);  struct netconn *  netconn_new     (enum netconn_type type);
121    struct
122    netconn *netconn_new_with_callback(enum netconn_type t,
123                                       void (*callback)(struct netconn *, enum netconn_evt, u16_t len));
124  err_t             netconn_delete  (struct netconn *conn);  err_t             netconn_delete  (struct netconn *conn);
125  enum netconn_type netconn_type    (struct netconn *conn);  enum netconn_type netconn_type    (struct netconn *conn);
126  err_t             netconn_peer    (struct netconn *conn,  err_t             netconn_peer    (struct netconn *conn,

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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