Personally, I would suggest you read beej, then write a client/server pair test program to send and receive a single integer.

When that works, you can readily extend it to any sized message you...