Suggested reading:
Lesson: All About Sockets (The Java™ Tutorials > Custom Networking)
And yes, TCP fits into Sockets.