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>
My server sends the string ,"Hello from server" as shown below(using the
winsock fns.) :
 		if(error = send(newSd,"Hello from server",17,0) == 
			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';

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.

Meenakshi Arora
Software Engineer
Red Creek Communications.
3900,New Park Mall Road,
Newark, CA 94560
Tel. (510) 745 3943
Received on Tuesday, 23 May 2000 18:25:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC