How to write a socket client to connect my own server?

I’m learning UE4 from beginning. I want to write some network code ( use tcp protocol ), to connect to my old game server, and use my own protocol.
Where can I find come documents about it?

Hi,

this one should get you started: