eCosPro® Reference Manual
Prev | Chapter 5. Raw API | Next

# Callbacks

Program execution is driven by callbacks. Each callback is an ordinary C function that is called from within the TCP/IP code. Every callback function is passed the current TCP or UDP connection state as an argument. Also, in order to be able to keep program specific state, the callback functions are called with a program specified argument that is independent of the TCP/IP state.

The `tcp_arg()` function is used for setting the application connection state.

Prev | Home | Next
Usage | Up | tcp_arg()