socket programing in client server

hei,

i want to enter name and read it by client server socket program after checking name validity put the password and check.if ok than server clirnt say correct other wise incorrect.

below my code:

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..don know what to do.

I hate to repeat myself, so I'll just point you to your old thread here. Thread closed.