Error in reopening socket connection
I have a menu which will do this process every time user click it.
- ask user to type text
- open socket connection to server
- send the text to server
- close connection
i'am not using the BES, just connect directly to a web server, so i use deviceside=true parameter.
i have try to debug my code, and i found that if i open connection and just read from socket it works fine on my process above, but if i open connection and try to write data to socket, it only success on the first time, the next will be fail in opening connection statement.
this is the code for read from socket:
FYI, i'am testing it on emulator.
|All times are GMT -5. The time now is 01:55 PM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.