RealityVelJackson
Programmer
I am writing a multithreaded 'chatroom' style server that constantly broadcasts the messages it receives to all the clients so that they can watch the discussion unfold. Upon a client's successful connection to the server, the client creates a new thread. From inside this thread I would like to spawn a new console window, possibly using:
and then echo received (broadcasted) strings to the new console possibly using:
On a UNIX machine, I have an idea of how to write to open processes, but I don't know how to do this using windows.
Any suggestions ?
Code:
systen("start cmd");
Code:
char* command = "echo ";
strcat(command, receivedString);
system(command);
On a UNIX machine, I have an idea of how to write to open processes, but I don't know how to do this using windows.
Any suggestions ?