Giter VIP home page Giter VIP logo

network_socket_programming's Introduction

network_socket_programming

2024 3-1 컴퓨터네트워크 과제 - 소켓 프로그래밍 설명

  • './myserver '을 입력해 서버를 연다.
  • 서버와 클라이언트가 같은 컴퓨터에서 돌아가기 때문에 클라이언트는 Firefox에서 localhost나 127.0.0.1 뒤에 자신이 입력한 port number를 붙여 서버에 요청을 하게 된다.
  • 뒤에 '/'만 올 경우 default.html으로 응답하게 했고, myserver.c 코드와 같은 디렉터리에 있는 jpg, pdf, html 등을 요청하면 서버에서 요청을 parsing하고 그에 맞는 응답을 보낸다.
  • 결과적으론 클라이언트가 요청한 파일을 서버가 화면에 띄워줄 수 있다.
  • 결과 예시 image

network_socket_programming's People

Contributors

hcg0127 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.