¡@

Home 

2014/10/16 ¤W¤È 08:20:56

android Programming Glossary: outmessage

Android TCP does not flush until socket is closed

http://stackoverflow.com/questions/11847092/android-tcp-does-not-flush-until-socket-is-closed

in a thread that will loop through checking if there is an outMessage if there is it will send the message. Next it will check it.. connectionStatus TCP_SOCKET_STATUS_CONNECTED try if outMessage null OutStream.writeBytes outMessage OutStream.flush outMessage.. try if outMessage null OutStream.writeBytes outMessage OutStream.flush outMessage OUT TO SERVER outMessage socketClient.close..

Android TCP does not flush until socket is closed

http://stackoverflow.com/questions/11847092/android-tcp-does-not-flush-until-socket-is-closed

get this block to code to work properly. My Intent This is in a thread that will loop through checking if there is an outMessage if there is it will send the message. Next it will check it if there is anything in the in stream if there is it will send.. cannot get anything to work. Code public void run while connectionStatus TCP_SOCKET_STATUS_CONNECTED try if outMessage null OutStream.writeBytes outMessage OutStream.flush outMessage OUT TO SERVER outMessage socketClient.close sendMessageToAllUI.. public void run while connectionStatus TCP_SOCKET_STATUS_CONNECTED try if outMessage null OutStream.writeBytes outMessage OutStream.flush outMessage OUT TO SERVER outMessage socketClient.close sendMessageToAllUI 0 MAINACTIVITY_SET_TEXT_STATE..