winapi
Jul 1st, 2000, 02:52 PM
Hi,
I am writing a multi user chat server for my work. I have the client program send data to my server in the format of command,param1,param2 ect... I wrote a parser in a module to split this up and return it in a global variable call parseddata(indexofsocket,1-20) on the server. My question is, if two people send data at nearly the same time, will my looping vars in the parsed data function get mixed up if the fuctions exectues before the other is finished.
I am writing a multi user chat server for my work. I have the client program send data to my server in the format of command,param1,param2 ect... I wrote a parser in a module to split this up and return it in a global variable call parseddata(indexofsocket,1-20) on the server. My question is, if two people send data at nearly the same time, will my looping vars in the parsed data function get mixed up if the fuctions exectues before the other is finished.