Thread: Socket Server
View Single Post
Old May 22nd, 2006, 6:31 PM   #14
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
You could also have a switch statement so that whatever happens(send, receive, user connects), the specific functions are given a number and the program waits for a function to happen then an int is given a number which deals with the specific function inside a switch statement.

Try googling "C++ message pump" for more information on windows messages.
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote