With any code doing a basic socket functionality, the code that i gave in
the original post is suppossed to connect to a deamon, and get a message
from it , instead it "makes the deamon go crazy" in the sense that it starts
endless looping and loads the system resources up to max.
"Jim Lucas" <
well i mean even if we would not consider that particular piece of code as
an example of the code that i have issues with im still rather interesting
if theres some different between the socket model used by say, c++(winsock
in my case) and the sockets used in php
because when made a simple c++
)
{
i++;
cout << "Client Connected." << endl;
cout << "Clients connected: " << i << endl;
_beginthread(clientserve, 0, (void*)&AcceptSocket);
}
}
""vixle"" <[EMAIL PROTECTED]> wrote in message
)
{
i++;
cout << "Client Connected." << endl;
cout << "Clients connected: " << i << endl;
_beginthread(clientserve, 0, (void*)&AcceptSocket);
}
}
""vixle"" <[EMAIL PROTECTED]>
i have a daemon running on that port that sends a message when it's got a
client connected
but the script above doesn't output anything it just loads my cpu up to 100
percent and thats it then it basically stops working. While i need it to
display the messages sent by server(daemon) to the us
5 matches
Mail list logo