Skip to content

woorimlee/linux-network-programming

Repository files navigation

Linux Socket Network Programming

이 Repository는 리눅스상에서 구현한 네트워크 프로그래밍에 대한 저장소입니다.

Image_Transferring 폴더에 있는 실행 파일로 이미지를 전송 & 수신 할 수 있으며,

Server_time_Transferring 폴더에 있는 실행 파일로 서버의 현재 시간을 클라이언트로 전송할 수 있습니다.

Sending_HTTP_Request 폴더에 있는 실행 파일을 사용해 www.google.com에 HTTP Request를 전송할 수 있습니다. 원하는 메세지 전송시 send()함수만 수정하면 됩니다.
 

사용법은 아래와 같습니다.

   

  • SimpleServer.c & SimpleClient.c file is a basic way how to use socket.

Usage : (You just need 2 shells)

  1. One shell command this : ./SimpleServer port_num(ex. 4680)
  2. The other shell command this : ./SimpleClient 127.0.0.1 4680

   

  • In the Image_Transferring directory, there is JpgClient.c & JpgServer.c file.

Usage : (You just need 2 shells)

  1. One shell command this : ./JpgServer port_num(ex. 4680) test.jpeg
  2. The other shell command this : ./JpgClient 127.0.0.1 4680 download_file_name(ex.down.jpeg)

   

  • In the Server_time_Transferring directory, there is TimeServer.c & TimeClient.c file

Usage : (you just need 2 shells also)

  1. One shell command this : ./TimeServer port_num
  2. The other shell command this : ./TimeClient 127.0.0.1 port_num

   

  • In the Sending_HTTP_Request directory, there is WebClient.c file.

Usage : ./WebClient 80

If you want to send a different message sended to 'google.com', just modify send() func in WebClient.c.

   

About

네트워크 프로그래밍 강의 정리. Socket Programming lecture for "Network Programming in Linux" coures.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages