Header

  1. View current page

    knowledge님의 노트

Profile_img_60x60_01
1

java for newbie

chapter5_pc manage : chapter 5 class의 예제 프로그램

chapter6

chapter13

  • TCP - connectionned
    • 통신 시 연결
    • 전송 시 연결되어 있기 때문에 상대를 지정할 필요가 없음
  • UDP - connectionless 
    • 통신 시 연결 안함
    •  전송 시마다 상대를 지정해야
  • recieve 시 입력을 다 받을 때까지 블럭킹이 발생 
    • 서버는 블럭킹되어 있을 수 없음 - 멀티쓰레딩 사용
  • socket 
    • 통신하는 주소와 포트 번호의 쌍으로 이루어진다.
  • ServerSocket
    • create > bind > listen
  • 멀티 쓰레딩 
    • Thread 클래스를 상속
    • Runnable 인터페이스를 구현 > Thread 객체로 래핑하여 사용
    •  

 

History

Last edited on 06/11/2007 11:18 by persona

Comments (0)

You must log in to leave a comment. Please sign in.