Page 589 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 589

공중망을  이용한  애완동물  사료  공급기



                                            new  OutputStreamWriter(socket.getOutputStream())),  true);
                                            out.println(sendMsg  +  '0');
                                            /**
                                              *  데이터  수신
                                             */


                                            InputStream  in  =  socket.getInputStream();
                                            BufferedReader  reader  =  new  BufferedReader(
                                                            new  InputStreamReader(in));
                                            socket.setSoTimeout(5000);


                                            msg  =  reader.readLine();
                                            System.out.println("Send  Complete");


                                            socket.close();
                                    }  catch  (Exception  e)  {
                                            e.printStackTrace();
                                    }
                                    return  msg;
                            }
                    }
              }
                      (다).  POM.xml

              <project  xmlns="http://maven.apache.org/POM/4.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
              http://maven.apache.org/maven-v4_0_0.xsd">
                    <modelVersion>4.0.0</modelVersion>
                    <groupId>Project_2014</groupId>
                    <artifactId>DogBab</artifactId>
                    <packaging>war</packaging>
                    <version>0.0.1-SNAPSHOT</version>
                    <name>DogBab  Maven  Webapp</name>
                    <url>http://maven.apache.org</url>
                    <dependencies>
                            <dependency>
                                    <groupId>com.sun.jersey</groupId>
                                    <artifactId>jersey-server</artifactId>
                                    <version>1.8</version>
                            </dependency>






            인천전자마이스터고등학교                                 -  582  -
   584   585   586   587   588   589   590   591   592   593   594