how can I send and receive data in client server socket programing

char name;
printf ("Welcome to the server \n");
printf ("Enter user name: \n");
scanf ("%c", &name);

how can client send name to server:what should be the code?

int send \( int sid , const char buffer Ptr , int len , int f l a g \)

how can client receive ack from server:what should be the code?

int recv \( int sid , char buffer Ptr , int len , int flags \)

plz help me

You might start by reading the link jim posted here. Also, just posting parts of your homework again doesn't make it any less homework. And next time you might start sooner than the day before the deadline.