Small & old C project (during studies) coding a gateway between the Internet and a contiki node (over tty)