1 / 8

Time Management GNU TIMES

Time Management GNU TIMES. 05` 정일웅 06` 강주효 07` 이병준 09` 조민정. 목차. 동적관점. EchoServer (Source). // Set up stream for keyboard entry... Scanner userEntry = new Scanner( System. in ); String message, response; do { System. out.print ("Enter message: ");

tonya
Download Presentation

Time Management GNU TIMES

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Time ManagementGNU TIMES 05` 정일웅 06` 강주효 07` 이병준 09` 조민정

  2. 목차

  3. 동적관점

  4. EchoServer (Source) //Set up stream for keyboard entry... Scanner userEntry = new Scanner(System.in); String message, response; do { System.out.print("Enter message: "); message = userEntry.nextLine(); output.println(message); response = input.nextLine(); System.out.println("\nSERVER> " + response); }while (!message.equals("***CLOSE***")); // 텍스트를 스트링으로 받아서 message 출력 } catch(IOExceptionioEx) { ioEx.printStackTrace(); } finally { try { System.out.println( "\n* Closing connection... *"); Link.close(); } catch(IOExceptionioEx) { System.out.println("Unable to disconnect!"); System.exit(1); } } } } • import java.io.*; • import java.net.*; • import java.util.*; • public class TCPEchoClient{ private static InetAddresshost; private static final intPORT = 1234; //포트번호 1234로 지정 • public static void main(String[] args){ try{ host = InetAddress.getLocalHost(); } catch(UnknownHostExceptionuhEx){ System.out.println("Host ID not found!"); // 접속 실패시“Host ID not found!”출력 System.exit(1); } accessServer(); // 접속 성공시 서버접속 } // 서버 접속, 실패 예외처리 한 것 private static void accessServer(){ Socket link = null;//Step 1. try{ link = new Socket(host,PORT);//Step 1. Scanner input = new Scanner(link.getInputStream()); PrintWriteroutput = new PrintWriter( ink.getOutputStream(),true);

  5. EchoClient (Source) //Set up stream for keyboard entry... Scanner userEntry = new Scanner(System.in); String message, response; do{ System.out.print("Enter message: "); message = userEntry.nextLine(); output.println(message); response = input.nextLine(); System.out.println("\nSERVER> " + response); }while (!message.equals("***CLOSE***")); } catch(IOExceptionioEx){ ioEx.printStackTrace(); } finally{ try{ System.out.println( "\n* Closing connection... *") link.close(); } catch(IOExceptionioEx) System.out.println("Unable to disconnect!"); System.exit(1); } } } } • import java.io.*; • import java.net.*; • import java.util.*; • public class TCPEchoClient • { • private static InetAddress host; • private static final int PORT = 1234; • public static void main(String[] args) • { • try{ • host = InetAddress.getLocalHost(); • } • catch(UnknownHostExceptionuhEx){ • System.out.println("Host ID not found!"); • System.exit(1); • } • accessServer(); • } • private static void accessServer(){ • Socket link = null; • try{ • link = new Socket(host,PORT); • Scanner input = new Scanner( link.getInputStream()); • PrintWriter output = new PrintWriter(link.getOutputStream(),true);

  6. 프로젝트 학습현황

  7. 프로젝트 세부일정 기본 UI 설계(부분완료) Activity 순서(유동적인 작업) (4. 28 ~ 5. 5) Database정보관점 재 정의 및 테이블 설계, 정보삽입 (4. 28 ~ 5. 19) Server / Client 코딩 (4. 28 ~ 5. 5)Server/ Client 접속오류 및 데이터 전송 확인 (5.12 ~ 5. 19) XML 웹 풀 Parsing 학습 (4. 28 ~ 5. 5)XML 추출 (5. 5 ~ 5. 19) 그룹정보, 일정정보, 날씨정보 DB의 파일 입출력(5. 19 ~ 5. 26)누락되거나 불필요한 파일 추가 삭제(5. 26 ~ 6. 2) 각 단계별 작업을 진행하면서 그래픽 작업을 유동적으로 진행하나시간이 부족하면 우선순위가 낮은 작업(4. 28 ~ 6. 2)

  8. Thank you

More Related