Whenever i try to send data through RSocket iam getting Read Time Out exception. I doubt its because of not forcing the data to send. Is there any FLush() kind of API in RSocket.
First, what do you mean by "exception", second, how do you know it's a read exception? Third, exceptions (of that kind anyway) don't exist in Symbian (C++). Forth, do you really mean it's retuning KErrTimedOut from the .Write/.Send call?
Sorry for not making my point clear. Actually iam getting this exception in the servlet to which iam connecting to. After the servlet throws exception it reads the request parameters. The control in the servlet stops for few seconds waiting to read the data from the client.
In the client side i tried Send and Write, but without any success.
iSocket.Send(iBuffer, 0, iStatus);
in the RunL method iam getting the status as KErrNone. Since servlet is stoping for few seconds trying to read the request parameters it takes time to get the response.
Perhaps you need to append "\r\n" to the iBuffer data if the servlet is using a ReadlLine type function. Try that. Coz the socket might be expecting a "\r\n" to find the data.
Forum posts: 1379
First, what do you mean by "exception", second, how do you know it's a read exception? Third, exceptions (of that kind anyway) don't exist in Symbian (C++). Forth, do you really mean it's retuning KErrTimedOut from the .Write/.Send call?
didster
Forum posts: 45
Sorry for not making my point clear. Actually iam getting this exception in the servlet to which iam connecting to. After the servlet throws exception it reads the request parameters. The control in the servlet stops for few seconds waiting to read the data from the client.
Regards,
Prabhu.
Forum posts: 1379
Makes a bit more sense now!
Which API are you doing (Phone side) to send the data to the server?
didster
Forum posts: 45
In the client side i tried Send and Write, but without any success.
iSocket.Send(iBuffer, 0, iStatus);
in the RunL method iam getting the status as KErrNone. Since servlet is stoping for few seconds trying to read the request parameters it takes time to get the response.
Forum posts: 1379
Providing iBuffer is a class member, there is nothing wrong with that. You don't need to flush anything.
I would suggest the problem lies with the servlet/and or the data network you are sending over.
didster
Forum posts: 24
Perhaps you need to append "\r\n" to the iBuffer data if the servlet is using a ReadlLine type function. Try that. Coz the socket might be expecting a "\r\n" to find the data.