What do you suggest? Setting a socket to non-blocking mode and spinning the CPU until you can accept a connection?
No, anonytmouse's method blocks perfectly well.
Type: Posts; User: Eibro
What do you suggest? Setting a socket to non-blocking mode and spinning the CPU until you can accept a connection?
No, anonytmouse's method blocks perfectly well.
Why else would you want accept() to die? That socket is typically used for nothing more than accepting clients.
Eh? His would require another thread to set the quit event.
Simply closing the socket from another thread will cause accept() to return.
You could also use one of the asyncronous facilities Win32 provides, such as completion ports, completion routines, WSAAsyncSelect WSAEventSelect, GetOverlappedResult. Look them up on MSDN, it should...
Made by you, at least? Are you accepting tutorials written by others? I wrote a little something up the other day while I was bored. If you're interested, take a look at...
I don't mean to take anything away from what you're attempting here, but these types of tutorials have been done to death. There's more to the Win32 API than just the GUI. Perhaps you could write...
Time to nitpick.This is the virtual address where your executable module is loaded.
Your WM_CLOSE handler shouldn't fall through to WM_DESTROY like this. Wait till you process WM_DESTROY to quit....
Yes, different schools. I talked to a few people, but none of them gave me a clear concise answer. Their explanations were packed with a lot of 'I think' and 'maybe's. If they're truly the same...
I'm curious to know if anyone knows the difference between a
"Bachelor of Science with a major in Computer Science" and a
"Bachelor of Computer Science"
Those who i've asked already have been...
Not strange at all.
p' = qp(q*) OR
p' = (q*)pq depending on your definition of quaternion multiplication. I've seen two different forms, and the result is that quaternion concatenation takes...
Have you successfully registered the channel? The old password was vixxxen, I don't know if it expired or not.
I'm not reading all that, but i've got one thing to say. C++ is totally the best ever!!!!
You must be using Linux. It doesn't support that kind of advanced browsing. You're going to need a more powerful operating system, say, Windows 95.
It's just you.
Or maybe it's that stuff I slipped into your soup.
They consumed the corpses in a post-battle ritual.
Hmm, would there be any terrible side effects if delete[] was called on something allocated with new? (as in, calling delete[] on a single entity)
Eh, it's been done.
1/10
Yeah?? What about that one on Jupiter (or is it Mars...)
News flash! A better operating system has already been made: click.
What??? I thought professional programmers wore capes to work and ate caviare all day.
I can play games just fine on Win2K Pro.
You could always inject a DLL into the target process. This is exactly what Jeff Richter does in "Advanced Windows" when manipulating a listview belonging to another application.
After much thought, i've come up with two other options for you. You can remove hair from somewhere else (I recommend your eyebrows) and tape it to your face (I recommend scotch tape)
The other...
Zakk, please, shut up.