How do I read TCP data on the Arduino (with Ethernet shield)

This is serial, not TCP, but the idea is the same: