A simple Finger program introduces the TCP/IP interfaces, and how to hook them up with input and output streams.
See Finger.m3 to learn how to build a TCP client and the TCP server example to learn how to build a TCP server.
Finger.m3