Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Using send and recv (winsock)

4: Adsense

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   

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

#2 Epoch   Members   

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   

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   

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.