Delayed message sending in socket -server application
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mangesh_Kulkarni
Posted On:   Friday, August 25, 2006 04:13 PM

hi,
CASE::
I am using Socket client which is recieving data (String data) into Flash XML Socket. The data is recieved as:when i send say "P1" it doesnt show into flash.After that i m sending "P2" then "P1" appears in Flash.

Please Can u tell me if Following are details ehy the data is delayed
........

Socket client=sss.accept();
client.setTcpNoDelay(true);
DataOutputStream out = new DataOutputStream(client.getOutputStream());
System.out.println("Client1 ");

Re: Delayed message sending in socket -server application

Posted By:   Robert_Lybarger  
Posted On:   Saturday, August 26, 2006 01:06 AM

You probably need to "flush()" your output stream after you write to it... in case a buffer is just holding on to it in the meantime. (And unless you need it for some specific purpose otherwise, the "setTcpNoDelay" is probably a red herring.)
About | Sitemap | Contact