//=¸Þ½ÃÁö¸¦ ¹Þ´Â ºÎºÐ¿¡¼ ¸Þ½ÃÁö¸¦ ¹ÞÁö ¸øÇÏ°í
resMsg = socketClient.recieveMessageStr();
ÀÌ¿Í °°Àº ¿¡·¯¸¦ ÁÝ´Ï´Ù.
java.net.SocketException: Software caused connection abort: recv failed
recieveMessageStr »ó¼¼ºÎºÐÀÔ´Ï´Ù.
public String recieveMessageStr() throws IOException {
StringBuilder builder = new StringBuilder();
BufferedReader br = null;
String tmp = null;
br = new BufferedReader(new InputStreamReader(
clientSocket.getInputStream(), "EUC-KR"));
while ((tmp = br.readLine()) != null) {
builder.append(tmp);
}
return builder.toString();
}
ÇØ°áÃ¥Á» ºÎŹµå·Áº¾´Ï´Ù.
°¨»çÇÕ´Ï´Ù.
|
clientSocket timeout ½Ã°£ È®ÀÎÇغ¸¼Å¿ä