/[lwip]/lwip/doc/rawapi.txt
ViewVC logotype

Diff of /lwip/doc/rawapi.txt

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

revision 1.3 by likewise, Thu Mar 11 20:45:09 2004 UTC revision 1.4 by likewise, Sun Oct 17 21:28:25 2004 UTC
# Line 1  Line 1 
1  Raw TCP/IP interface for lwIP 0.5  Raw TCP/IP interface for lwIP
2    
3  Author: Adam Dunkels  Authors: Adam Dunkels, Leon Woestenberg
4    
5  lwIP provides two Application Program's Interfaces (APIs) for programs  lwIP provides two Application Program's Interfaces (APIs) for programs
6  to use for communication with the TCP/IP code: the sequential API  to use for communication with the TCP/IP code:
7  (often just called "the API") and the raw TCP/IP interface. This  * low-level "core" / "callback" or "raw" API.
8  document is intended as a description of the latter. For lwIP versions  * higher-level "sequential" API.
 lower than 0.5, this API was not documented.  
9    
10  The sequential API provides a way for ordinary, sequential, programs  The sequential API provides a way for ordinary, sequential, programs
11  to use the lwIP stack. It is quite similar to the BSD socket API. The  to use the lwIP stack. It is quite similar to the BSD socket API. The
12  model of execution is based on the open-read-write-close  model of execution is based on the blocking open-read-write-close
13  paradigm. Since the TCP/IP stack is event based by nature, the TCP/IP  paradigm. Since the TCP/IP stack is event based by nature, the TCP/IP
14  code and the application program must reside in different execution  code and the application program must reside in different execution
15  contexts (threads).  contexts (threads).
16    
17    ** The remainder of this document discusses the "raw" API. **
18    
19  The raw TCP/IP interface allows the application program to integrate  The raw TCP/IP interface allows the application program to integrate
20  better with the TCP/IP code. Program execution is event based by  better with the TCP/IP code. Program execution is event based by
21  having callback functions being called from within the TCP/IP  having callback functions being called from within the TCP/IP
# Line 34  Both APIs can be used simultaneously by Line 35  Both APIs can be used simultaneously by
35  programs. In fact, the sequential API is implemented as an application  programs. In fact, the sequential API is implemented as an application
36  program using the raw TCP/IP interface.  program using the raw TCP/IP interface.
37    
   
38  --- Callbacks  --- Callbacks
39    
40  Program execution is driven by callbacks. Each callback is an ordinary  Program execution is driven by callbacks. Each callback is an ordinary

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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