Each program is linked against a TCP/IP library. #defines control what parts each program gets, depending on what it needs.
The DOS TSR approach would make TCP/IP a common service for DOS programs. I went with the library approach for speed and customization purposes.