Click here to Skip to main content
15,895,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalset align for header control Pin
_skidrow_vn_18-Aug-03 5:18
_skidrow_vn_18-Aug-03 5:18 
GeneralRe: set align for header control Pin
David Crow18-Aug-03 9:08
David Crow18-Aug-03 9:08 
GeneralTree Control: add item without an image Pin
heranda200018-Aug-03 5:06
heranda200018-Aug-03 5:06 
GeneralRe: Tree Control: add item without an image Pin
Rage18-Aug-03 5:11
professionalRage18-Aug-03 5:11 
GeneralTraffic Control API Pin
pma18-Aug-03 4:56
pma18-Aug-03 4:56 
GeneralFreeze During Compile Pin
Defiler18-Aug-03 4:36
Defiler18-Aug-03 4:36 
GeneralRe: Freeze During Compile Pin
Maximilien18-Aug-03 5:26
Maximilien18-Aug-03 5:26 
GeneralMultithreaded server, broadcasting to multiple clients Pin
Kuniva18-Aug-03 4:21
Kuniva18-Aug-03 4:21 
Hi i'm writing a multithreaded TCP server with my own protocoll. I had to switch to a simple multithreaded model because Win9x doesnt support IOCP. I've looked at a lot of examples already, but still i face the same problem. The samples i've looked at have a client thread function that handles each client seperately (like and echo server of files transfer server or whatever). But the problem is that i need to be able to send data to all of the clients at once, like a chat server would do.. When someone types a message, it gets processed and depending wether its a private message or a message intended for a certain room or just all clients it is broadcasted or sent to a specific ip. I thought about making a list of all the socket handles that have a connection running and then simple making a function that sends the data on all these sockets but i am affraid this will mess up the threads somehow.. and that it is just too simple. Does anyone know how this is generally implemented?

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

GeneralRASENTRY dwAlternateOffset question Pin
bob1697218-Aug-03 4:15
bob1697218-Aug-03 4:15 
Generalprint problem Pin
_crs_18-Aug-03 3:39
_crs_18-Aug-03 3:39 
GeneralRe: print problem Pin
Bernhard18-Aug-03 4:45
Bernhard18-Aug-03 4:45 
GeneralHeader file error .Help experts!!! Pin
rohit.dhamija18-Aug-03 2:15
rohit.dhamija18-Aug-03 2:15 
GeneralRe: Header file error .Help experts!!! Pin
HPSI18-Aug-03 2:43
HPSI18-Aug-03 2:43 
GeneralRe: Header file error .Help experts!!! Pin
David Crow18-Aug-03 9:17
David Crow18-Aug-03 9:17 
GeneralRe: Header file error .Help experts!!! Pin
rohit.dhamija18-Aug-03 18:27
rohit.dhamija18-Aug-03 18:27 
GeneralRe: Header file error .Help experts!!! Pin
David Crow19-Aug-03 7:36
David Crow19-Aug-03 7:36 
GeneralRe: Header file error .Help experts!!! Pin
rohit.dhamija19-Aug-03 19:23
rohit.dhamija19-Aug-03 19:23 
GeneralRe: Header file error .Help experts!!! Pin
David Crow20-Aug-03 2:46
David Crow20-Aug-03 2:46 
QuestionHow to activate some choosen thread? Pin
vgrigor18-Aug-03 2:01
vgrigor18-Aug-03 2:01 
AnswerRe: How to activate some choosen thread? Pin
Alexander M.,18-Aug-03 2:05
Alexander M.,18-Aug-03 2:05 
AnswerRe: How to activate some choosen thread? Pin
jhwurmbach18-Aug-03 2:34
jhwurmbach18-Aug-03 2:34 
GeneralRe: How to activate some choosen thread? Pin
vgrigor18-Aug-03 3:26
vgrigor18-Aug-03 3:26 
GeneralRe: How to activate some choosen thread? Pin
jhwurmbach18-Aug-03 4:08
jhwurmbach18-Aug-03 4:08 
GeneralRe: How to activate some choosen thread? Pin
vgrigor18-Aug-03 4:13
vgrigor18-Aug-03 4:13 
GeneralRe: How to activate some choosen thread? Pin
jhwurmbach18-Aug-03 4:35
jhwurmbach18-Aug-03 4:35 

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.