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