±Û¾´ÀÌ :±èÁö¿µ 2000³â 7¿ù 03ÀÏ 14:55:10
In Reply to: socket »ý¼º½Ã ¹®Á¦ posted by ŵð on 2000³â 7¿ù 03ÀÏ 11:07:34:
public String comm_read() {
InputStream inn = null;
String read_buff = "";
try {
inn = c_socket.getInputStream();
<---ÀÌ ºÎºÐÀ»
inn = new InputStream(c_socket.getInputStream());
ÀÌ·¸°Ô ¹Ù²ãÁֽøé nullpoint¿¡·¯´Â ¾ø¾îÁú °ÍÀ¸·Î
»ý°¢µÇ´Âµ¥¿µ.. ^^;;
-------------------------------------------------
buff_inn = new BufferedInputStream(inn);
data_inn = new DataInputStream(buff_inn);
} catch (IOException e) {
return "";
}
try {
read_buff = data_inn.readLine();
} catch (IOException e) {
return "";
}
return read_buff;
}