W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

using winsock

From: Arora Meenakshi <marora@redcreek.com>
Date: Tue, 23 May 2000 15:26:06 -0700
Message-ID: <B74EBB896D29D211A43E00805F650DF20119B89B@mail.redcreek.com>
To: "LibWWW (E-mail)" <www-lib@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:36 GMT