using winsock

hello
My server sends the string ,"Hello from server" as shown below(using the
winsock fns.) :
 		if(error = send(newSd,"Hello from server",17,0) == 
SOCKET_ERROR)
		{
			cout<<"send failed \n"<<flush;
		}

but my client receives only the first character 'H'
any suggestions on what could be the reason????
My client code is:
	if(num = recv(sd,buf,1024,0) == -1)
	{
		return 0;
	}
	buf[num] = '\0';
	cout<<buf<<flush;

any suggestions on what should be done to get the complete data on teh
client side.
moreover if anyone can suggest me a site where i can post my questions
related to winsock programing.
thanx
meenakshi

Meenakshi Arora
Software Engineer
Red Creek Communications.
3900,New Park Mall Road,
Newark, CA 94560
Tel. (510) 745 3943
email:marora@redcreek.com

Received on Tuesday, 23 May 2000 18:25:32 UTC