Jump to content

  • Log In with Google      Sign In   
  • Create Account


Using send and recv (winsock)


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Ratman   Members   -  Reputation: 181

Like
Likes
Like

Posted 28 April 2000 - 05:52 PM

could someone give me and example of using send and recv with winsock? Assume I have a socket connected and everything else set. I''d just like to see how to send a random number, and/or a string. Thanks for any help. Dave Ratti

Sponsor:

#2 Epoch   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 April 2000 - 06:48 PM

in both borland c++ and visual c++, there are examples
of server/client apps that use winsock for sending and
receiving. They''re called chatsrvr and chatter, they
contain the basics.

#3 Richard Rice   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 April 2000 - 09:31 PM

You can also find these examples on the web at...

http://msdn.microsoft.com/library/default.asp?URL=/library/devprods/vs6/visualc/vcsample/_sample_mfc_chatsrvr.htm


Concider using select() or ioctlsocket() to aid you in setting timeouts for send and recv.

#4 Yanroy   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 May 2000 - 01:42 AM

I got my first taste of sockets by making a Battle.net bot You can get the sample code (including working sockets) from www.battle.net. Follow the download links, then look for greetbot.

--------------------


You are not a real programmer until you end all your sentences with semicolons;

Yanroy@usa.com

Visit the ROAD Programming Website for more programming help.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS