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

Slides:



Advertisements
Similar presentations
Sockets for Clients Socket Basics  Connect to a remote machine  Send data  Receive data  Close a connection  Bind to a port 
Advertisements

Referring to Java API Specifications
Socket Programming By Ratnakar Kamath. What Is a Socket? Server has a socket bound to a specific port number. Client makes a connection request. Server.
School of Information Technologies Multithreading NETS3303/3603 Week 3.
Client-Server Network Programming Session 2: Programming with Java and project A workshop by Dr. Junaid Ahmed Zubairi Department of Computer Science State.
Java Networking -- Socket Server socket class: ServerSocket wait for requests from clients. after a request is received, a client socket is generated.
System Programming Practical session 10 Java sockets.
Client/Server example. Server import java.io.*; import java.net.*; import java.util.*; public class PrimeServer { private ServerSocket sSoc; public static.
Java sockets. From waiting.
School of Information Technologies Distributed Programming NETS3303/3603 Week 2.
2: Application Layer1 Socket Programming. 2: Application Layer2 Socket-programming using TCP Socket: a door between application process and end- end-transport.
1 First app – simplechat1 Reminder: what’s the point?  To build on ocsf framework.  Simple requirements: echo all messages to all clients.  Use only.
Network/Socket Programming in Java Rajkumar Buyya.
CSE 341, S. Tanimoto Java networking- 1 Java Networking Motivation Network Layers Using Sockets A Tiny Server Applets URLs Downloading Images, MediaTracker.
Web Proxy Server. Proxy Server Introduction Returns status and error messages. Handles http CGI requests. –For more information about CGI please refer.
2-1 CM0551 Week 3 The scanner class – file input A Spelling Checker Time and space requirements for various dictionary structures.
1 BUILDING JAVA PROGRAMS CHAPTER 3 THE SCANNER CLASS AND USER INPUT.
Announcements Quiz 2 Grades Posted on blackboard.
Socket programming 1. getByName import java.net.*; public class GetHostName { public static void main (String args[]) { String host = "
Exceptions 1. Your computer takes exception Exceptions are errors in the logic of a program (run-time errors). Examples: Exception in thread “main” java.io.FileNotFoundException:
Import java.net.*; import java.io.*; public class LowPortScanner { public static void main(String[] args) { String host = "localhost"; if (args.length.
Lab 6: Introduction to Sockets (Web Programming – Part 1) Reference: Head First Java (2 nd Edition) by Kathy Sierra & Bert Bates.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae david streader, VUW Echo Networking COMP
CSCI S-1 Section 6. Coming Soon Homework Part A – Friday, July 10, 17:00 EST Homework Part B – Tuesday, July 14, 17:00 EST Mid-Term Quiz Review – Friday,
Object Oriented Programming in Java Lecture 16. Networking in Java Concepts Technicalities in java.
Lecture 9 Network programming. Manipulating URLs URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae, VUW Networking COMP # 22.
Networks Sockets and Streams. TCP/IP in action server ports …65535 lower port numbers ( ) are reserved port echo7 time13 ftp20 telnet23.
 2003 Joel C. Adams. All Rights Reserved. Calvin CollegeDept of Computer Science(1/11) Java Sockets and Simple Networking Joel Adams and Jeremy Frens.
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae david streader, VUW Networking and Concurrency COMP.
1 cs205: engineering software university of virginia fall 2006 Network Programming* * Just enough to make you dangerous Bill Cheswick’s map of the Internet.
CS390- Unix Programming Environment CS 390 Unix Programming Environment Java Socket Programming.
1 CSC 201: Computer Programming I Lecture 2 B. S. Afolabi.
VII. Sockets. 1. What is a Socket? A socket is one end-point of a two-way communication link between two programs running on the network. Socket classes.
Indentation & Readability. What does this program do? public class Hello { public static void main ( String[] args ) { //display initial message System.out.println(
Java Server Programming Web Interface for Java Programs.
CSI 3125, Preliminaries, page 1 Java I/O. CSI 3125, Preliminaries, page 2 Java I/O Java I/O (Input and Output) is used to process the input and produce.
By Vivek Dimri. Basic Concepts on Networking IP Address – Protocol – Ports – The Client/Server Paradigm – Sockets The Java Networking Package – The InetAddress.
TCP/IP Protocol Stack IP Device Drivers TCPUDP Application Sockets (Gate to network) TCP: –Establish connection –Maintain connection during the communication.
Java Programming II Java Network (I) Java Programming II.
1 Lecture 9: Network programming. 2 Manipulating URLs URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on.
Java Scanner Class Keyboard Class. User Interaction So far when we created a program there was no human interaction Our programs just simply showed one.
C OMMON M ISTAKES CSC Java Program Structure  String Methods.
Network Programming: Servers. Agenda l Steps for creating a server Create a ServerSocket object Create a Socket object from ServerSocket Create an input.
import java.util.Scanner; class myCode { public static void main(String[] args) { Scanner input= new Scanner(System.in); int num1; System.out.println(“Enter.
Network Programming with Java java.net.InetAddress: public static void main(String[] args) throws UnknownHostException { InetAddress localAddress = InetAddress.getLocalHost();
Spring/2002 Distributed Software Engineering C:\unocourses\4350\slides\DefiningThreads 1 Java API for distributed computing.
WAP to find out the number is prime or not Import java.util.*; Class Prime { public static void main(string args[]) { int n,I,res; boolean flag=true;
A.P. Computer Science Input is NOT tested on the AP exam, but if we want to do any labs, we need input!!
Working with URLs CSIE, National University of Tainan.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Introduction to programming in java
School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae david streader, VUW Echo Networking COMP
Network Programming Communication between processes Many approaches:
Java 13. Networking public class SumTest {
Echo Networking COMP
Threads in Java Two ways to start a thread
Chapter 2 Clarifications
Lecture 21 Sockets 1 (Not in D&D) Date.
CSE 341, S. Tanimoto Java networking-
Network Programming Introduction
Client-server Programming
PRESENTED To: Sir Abid………. PRESENTED BY: Insharah khan………. SUBJECT:
Java Network Programming
Reading and Writing Text Files
The Basics of Recursion
class PrintOnetoTen { public static void main(String args[]) {
CSC1401 Input and Output (with Files)
Chapter 2: Application layer
Presentation transcript:

Time Management GNU TIMES 05` 정일웅 06` 강주효 07` 이병준 09` 조민정

목차 1. 동적관점 리소스 프로젝트 학습현황 2. 리소스 & 스터디 프로젝트 세부일정 3. 상세설계

동적관점

EchoServer (Source) import java.io.*; import java.net.*; import java.util.*; public class TCPEchoClient{ private static InetAddress host; private static final int PORT = 1234; // 포트번호 1234 로 지정 public static void main(String[] args){ try{ host = InetAddress.getLocalHost(); } catch(UnknownHostException uhEx){ 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()); PrintWriter output = new PrintWriter( ink.getOutputStream(),true); //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(IOException ioEx) { ioEx.printStackTrace(); } finally { try { System.out.println( "\n* Closing connection... *"); Link.close(); } catch(IOException ioEx) { System.out.println("Unable to disconnect!"); System.exit(1); }

EchoClient (Source) 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(UnknownHostException uhEx){ 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); //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(IOException ioEx){ ioEx.printStackTrace(); } finally{ try{ System.out.println( "\n* Closing connection... *")link.close(); } catch(IOException ioEx) System.out.println("Unable to disconnect!"); System.exit(1); }

프로젝트 학습현황 정 일웅강 주효조 민정이 병준 UIOOOO ActivityOOOO IndentOX △△ Network △ X △ X Server △ XX △ DatabaseX △ X △ ParsingX △ X △ XML △ O △ X 입출력 X △ XO O 전반적인 이해 △ 학습진행 중 X 학습 부족

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