views:

13

answers:

0

hi friends, i am working on a iphone application,in which iphone application sends a request to the server using socket connection.in server side java code(using apache mina) takes the request and it processes the request and sends the response. now the problem is if multiple iphone users sends request at a time to the server,the response is miss matching.for example if "A" and "B" are two iphone users and both send request at at a time the "A's" response is going to "B".the application has designed as point to point.

please suggest me how to write the server side code so that the request and response is safe.