January 11th, 2009, 05:14 AM
Thanks for ur replies. I have fount that it is most probably a scheduling problem in the embedded linux i am using.
January 10th, 2009, 04:52 PM
And can a call to recv() cause Segmentation fault ??
January 10th, 2009, 04:12 PM
Hello Everybody
Is there any problem in calling recv() concurrently in different threads ?
I mean is recv() is thread safe ?
Thanks
January 9th, 2009, 04:33 PM
OK thanks a lot for ur replies.
January 9th, 2009, 04:03 PM
In the use of the function:
std::string ss = "";
void Dummy( &ss );
There is no memory allocation for the string ss before sending its pointer to the function, while the function put data in the...
January 9th, 2009, 02:26 PM
Hello All
Is there a problem in memory allocation in the following code ?
std::string ss = "";
void Dummy( &ss );
cout << ss << endl;
January 3rd, 2009, 02:18 PM
I have noticed strange behavior in the code.
Brief of what server/client do:
- server runs a blocking recv().
- when client has a request, it packs the request into a string, sends the length of...
January 3rd, 2009, 09:02 AM
Each thread uses different socket identifier s_.
So select() in different threads is called on different sockets.
I use this receive function in the client in nonblocking mode with a timeout of 2...
January 3rd, 2009, 06:58 AM
Thanks for all who replied.
Here is my receive function:
Please review it and tell me if there is something wrong.
Note that this function is used by many concurrent threads.
I have a question:...
January 1st, 2009, 02:27 PM
Idetect the recv() timeout using the function select(). I put the receiving socket into the read set of the select() and pass the time out to the select() function. Then I check the return value of...
January 1st, 2009, 11:46 AM
It returns 0. There is no error happened and that is the problem. The data is sent from the server but the client recv() times out without receiving any data.
What I suspect now is that I am using...
January 1st, 2009, 04:38 AM
Hello All
I am working on a server/client application. The client connects to the server and sends some request data to the server, the server receives this data, does some function call, prepare...