Click here to Skip to main content
15,906,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectShow (DirectX) on CD Pin
Jeryth15-Nov-03 8:23
Jeryth15-Nov-03 8:23 
GeneralRe: DirectShow (DirectX) on CD Pin
TFB15-Nov-03 10:41
TFB15-Nov-03 10:41 
GeneralProblems with PI Pin
Jeryth15-Nov-03 7:08
Jeryth15-Nov-03 7:08 
GeneralRe: Problems with PI Pin
Kevin McFarlane15-Nov-03 10:13
Kevin McFarlane15-Nov-03 10:13 
GeneralRe: Problems with PI Pin
Antti Keskinen15-Nov-03 15:02
Antti Keskinen15-Nov-03 15:02 
GeneralJust bought a PocketPC, however, I need help here. Pin
Link260015-Nov-03 3:21
Link260015-Nov-03 3:21 
GeneralRe: Just bought a PocketPC, however, I need help here. Pin
Mike Dimmick15-Nov-03 3:32
Mike Dimmick15-Nov-03 3:32 
GeneralMultithreaded TCP server, client thread termination Pin
Kuniva15-Nov-03 2:14
Kuniva15-Nov-03 2:14 
I've been looking for a WIN32 multithreaded server sample for quite some time now. I've found a few on Codeproject and some on Codeguru, but none of them explained how to get past my biggest problem. They all seem to start some sort of acceptor that fires off a client thread for handling the client, but then it just waits for the client to disconnect, or for an error to occur. The thing that is never explained, and which i can't find a solution for is what if we need to boot a client from the server?? I mean, how can we let a client thread know that it has to stop looping and handling the client in a normal way? (I'm talking strictly win32 code, blocking mode)
I've thought about doing a select in the client thread so it could occasionally check for a flag wether as to exit or not. But this turned out to be rather messy and i'm sure there is some better way, that also would influence the performance a little less.

Kuniva
--------------------------------------------

GeneralRe: Multithreaded TCP server, client thread termination Pin
Rickard Andersson2015-Nov-03 2:41
Rickard Andersson2015-Nov-03 2:41 
GeneralRe: Multithreaded TCP server, client thread termination Pin
Kuniva15-Nov-03 3:31
Kuniva15-Nov-03 3:31 
GeneralRe: Multithreaded TCP server, client thread termination Pin
Rickard Andersson2018-Nov-03 5:31
Rickard Andersson2018-Nov-03 5:31 
GeneralRe: Multithreaded TCP server, client thread termination Pin
Kuniva18-Nov-03 6:42
Kuniva18-Nov-03 6:42 
GeneralQuickie about window z ordering Pin
srev15-Nov-03 2:05
srev15-Nov-03 2:05 
GeneralRe: Quickie about window z ordering Pin
Antti Keskinen15-Nov-03 15:08
Antti Keskinen15-Nov-03 15:08 
GeneralRe: Quickie about window z ordering Pin
Peter Molnar15-Nov-03 15:21
Peter Molnar15-Nov-03 15:21 
GeneralA question about reading and processing very large image Pin
swandream15-Nov-03 0:09
swandream15-Nov-03 0:09 
GeneralRe: A question about reading and processing very large image Pin
Peter Molnar15-Nov-03 15:26
Peter Molnar15-Nov-03 15:26 
GeneralRe: A question about reading and processing very large image Pin
swandream15-Nov-03 20:19
swandream15-Nov-03 20:19 
GeneralRe: A question about reading and processing very large image Pin
Peter Molnar16-Nov-03 5:08
Peter Molnar16-Nov-03 5:08 
GeneralRe: A question about reading and processing very large image Pin
swandream16-Nov-03 14:32
swandream16-Nov-03 14:32 
GeneralRe: A question about reading and processing very large image Pin
Todd Smith17-Nov-03 7:12
Todd Smith17-Nov-03 7:12 
GeneralThread exist or not Pin
Boby.George14-Nov-03 23:26
professionalBoby.George14-Nov-03 23:26 
GeneralRe: Thread exist or not Pin
Peter Molnar15-Nov-03 15:31
Peter Molnar15-Nov-03 15:31 
GeneralTimer / Waiting Question Pin
Steve Messer14-Nov-03 22:02
Steve Messer14-Nov-03 22:02 
GeneralRe: Timer / Waiting Question Pin
Prakash Nadar15-Nov-03 1:04
Prakash Nadar15-Nov-03 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.