I know what it is used for but i dont know what they mean by the function only returns when there is data sent?
Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
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.
Posted 23 December 2012 - 12:25 AM
ioctlsocket() is a general function to do socket control that cannot be done through send() or recv() or select() or similar. (There is also setsockopt())
Mainly, it is a portability shim for functions that on UNIX will go through ioctl(), which is a function that doesn't exist on Windows.
The specific functions of ioctlsocket() depend on the arguments you pass -- there is more than one thing you may be able to do with it. If you have a question about a specific function, mentioning how you are calling it, and what the results are, and what you expect the results to be (copy and paste a few lines of code) is necessary for anyone to be able to help.
Posted 23 December 2012 - 12:31 AM
Edited by Anddos, 23 December 2012 - 12:52 AM.
Posted 26 December 2012 - 05:58 PM
do you need to set this for both client and server ?
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.