»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

ÀÚ¹Ù ¼ÒÄÏ Åë½Å ¹®Àǵ帳´Ï´Ù.3


 

//=¸Þ½ÃÁö¸¦ ¹Þ´Â ºÎºÐ¿¡¼­ ¸Þ½ÃÁö¸¦ ¹ÞÁö ¸øÇÏ°í

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();

}

 

 

ÇØ°áÃ¥Á» ºÎŹµå·Áº¾´Ï´Ù.

°¨»çÇÕ´Ï´Ù.

 

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 Æä´µ

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ¹è°íǺñµÑ±â

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 hansolo
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â