mOS Documentation
v0.4
Getting Started
Running Applications
Programmer’s Guide
1. Introduction
2. mOS Socket Abstraction
3. mOS Event System
4. mOS Programming API
5. mOS Code Walkthrough
Sample Applications User Guide
mOS Frequently Asked Questions
Appendix
mOS Documentation
Docs
»
Programmer’s Guide
View page source
Programmer’s Guide
¶
1. Introduction
1.1. mOS (or mTCP) end application threading model
1.2. mOS middlebox application threading model
1.3. Running standalone middlebox applications with mOS net library
1.4. Running embedded monitoring applications with mOS server
2. mOS Socket Abstraction
2.1. mTCP sockets
2.2. Monitoring sockets
3. mOS Event System
3.1. Built-in Events
3.2. User-defined Events (UDEs)
3.3. Event Hook and Flow of Events
4. mOS Programming API
4.1. Initialization Routines
4.2. mOS End TCP Socket API
4.3. mOS Monitoring Socket API
5. mOS Code Walkthrough
5.1. Global Initialization Routine
5.2. Per-core Initialization Routine
5.3. Event Callback Registration
5.4. Packet/Flow Processing Logic in Event Handlers
5.5. Application Destroy Routine