September 3rd, 2009, 12:38 PM
its a recursive function, never ends, this will blow up the stack
nvm: i missed the part that you said you wanted to make it blow up :P
September 3rd, 2009, 08:14 AM
this will help you:
but, keep in mind: a lot of clients connected will create a lot of threads, which can be a little problem. once you have...
September 3rd, 2009, 07:58 AM
void makeitwork ( unsigned char* input, unsigned char* output, unsigned inputlength )
// index of the new array
unsigned int tempindex = 0;
// alloc new array with the new bytes
September 2nd, 2009, 09:45 PM
September 2nd, 2009, 04:43 PM
the most complete reference you can get from MSDN... books just helps if you are searching for especific things... like "multithreading", "network programming", and they will (almost 80% of the...
September 2nd, 2009, 04:28 PM
IOCP helps alot on that, and, sometimes, large-scale servers manage all those clients with many servers, not just one...
its like a gaming server... if the game gets too big, like a MMORPG server,...
September 2nd, 2009, 04:04 PM
you are using a unique loop for receiving data from the clients... look at the code, accept() is called once...
first, you will need to create an array of SOCKETS to store client connections... ...
September 2nd, 2009, 02:06 PM
thank you guys, i rewrited it, now the "final" idea implementation:
September 1st, 2009, 11:20 AM
thanks for the comments guys... i'm really new to c++... so there is there any other method to know the size to use? coz it must be sent in the packet for splitting data that comes to the server (or...
August 31st, 2009, 07:44 PM
Hello guys, I'm writing a network library to use in the future on my projects, but I got something that I don't know why is happens...