Purpose: TCP connections in the callback style, and what is and is not implemented.
Template. An essay with examples, not a copy of the header: replace each TODO with prose. Every function is in libude-tcp(3) and
include/ude_tcp.h.
TODO: The callback style
- One callback per connection; events from the event loop only.
TODO: Connect, listen, accept
ude_tcp_connect,ude_tcp_listen,ude_tcp_accept; send, recv, shutdown, close and abort.ude_tcp_listen_exwithUDE_TCP_LISTEN_ANYandUDE_TCP_LISTEN_DEFER, andude_tcp_confirm: a router's transparent listener (see Routing and NAT).
TODO: Shutting down a program
ude_tcp_pending()so queued data and FINs go out.
TODO: Not implemented
- Window scaling, SACK, Nagle, delayed ACKs, keepalives, path MTU.
right A: box "SYN-SENT" fit arrow B: box "ESTABLISHED" fit arrow C: box "FIN-WAIT" fit arrow D: box "TIME-WAIT" fit text "TODO: the life of a connection" at B.s + (1.0, -0.4)→ /pikchrshow