Looking at the above example which works perfectly for my requirement, Mobile device continuously sends strings to server every few milli second one string, http library is not suitable as there is a huge delay for local data sync to server. but i tried with the above example sending 30K records in a loop and i received all 30K strings in few seconds. which is very good and fulfill the requirement.
I also tried 2 devices sending same 30K records continuously in a loop which has satisfied the requirement. now i want to get response from server