Purpose: how to open a switch connection, move frames and fit libude into an event loop.
Template. An essay with examples, not a copy of the header: replace each TODO with prose. Every function is in libude(3) and
include/ude.h.
TODO: Fifteen lines
- The open/send/recv/close example from
include/ude.h.
TODO: URLs
udp://host:port,host:port,:port,port;vde:///pathwith libvdeplug.
TODO: Event loops
ude_get_fd()withude_service(); never blocking in a callback.
TODO: HELLO and keepalives
hello,keepalive_ms,ude_keepalive_hello(); see keepalives.
TODO: Monitors and management
ude_monitor()andude_recv_mirror(); a shortude_mgmtexample.
TODO: Threads and errors
- One connection per thread;
ude_last_error_str().
A: box "application" fit L: box "libude" "ude_conn" fit at A + (2.2, 0) S: box "udeswitch" fit at L + (2.2, 0) arrow <-> from A.e to L.w "frames" above arrow <-> from L.e to S.w "UDP" above text "TODO: one connection, frames both ways" at L + (0, -0.7)→ /pikchrshow