Can u give me an idea how to implement this,weather it is feasible?
What problems will i face?
I have made a code for parsing data that i received from the machine.....
My code is something like this:-
int main()
{
{
}
while(1);
}
{
while(1)
{
if received bytes is equal to,what we want then call
}
}
What i have to do is:-
Use this code to run on approx 100 machine.
I will read the ip and port of the machine from database.
I am thinking o do it like this:
I will write a query which will return me the no(count) of ip and port in the database.
Then depending upon the count i will make thread for each ip and port,each thread will contain one more thread that will be used for sending and receiving data.
Is this the FINE solution?
Do i have to use any semaphore,mutexes?
What problems will i face?