[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

POLL()

Posted on 2004-11-05
3
Medium Priority
?
366 Views
Last Modified: 2010-04-24


Is there any function like poll() in visual C++ ?.
0
Comment
Question by:raza
  • 2
3 Comments
 
LVL 8

Expert Comment

by:AaronReams
ID: 12508891
You can use select on one or more sockets to do the same thing as Poll.
0
 

Author Comment

by:raza
ID: 12509791

How do I find select in the MSDN or Is there any header file name that I need to include?
0
 
LVL 8

Accepted Solution

by:
AaronReams earned 200 total points
ID: 12509836
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/select_2.asp

You need to include the WinSock2 library and header files to use all of the socket functions including select.

#include <Winsock2.h>

// Add this to your project properties library includes
Ws2_32.lib

Hope this helps.

Cheers,
Aaron
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question