how to send data packets from server to client through tcp/ip protocol?

is there any syntax or header files need to add ?