TCP sockets programming
l
Common problem areas:
null termination of strings.
reads dont correspond to writes.
synchronization (including close()).
ambiguous protocol.