Giter Site home page Giter Site logo

network-programming-master's Introduction

Network Programming

Communication program with TCP between the server and the client

  1. Write a communication program between the server and the client. (Caution: Write so that at least 5 clients are connected.)
  2. If the communication between the server and the client is successful, you can check the information of the client through the following command.

Command

  • /help: Prints a list of commands.
  • /hello: When the server process receives the “hello” message, it sends the server's initial connection time to all clients, and prints its own server's initial connection time on the client screen.
  • /whoami: Displays information such as the current client's name, access time, and access IP address.
  • /getname: Prints the current client's name.
  • /getip: Prints the current client's IP address.
  • /showclients: Prints a list of names of clients connected to the server.
  • /timepassed: Prints how much time has passed since the client connected to the server.
  • /exit: Exits the connection of the client with the server.

File transfer program with FTP between Server and client

  1. File transfer The server is running on the server and plays a role in saving and sending the content delivered by the client as a file.
  2. File transfer The client selects a file to send to the server and sends it. Executes the function of receiving and saving the selected file from the server.
  • The client uploads and downloads files to and from the entire directory.
  • The directory where the file sent to the server is saved is where the server process is executed. Downloadable files make it possible to target the entire directory. Files that can be downloaded here are made possible by considering the permission.

Command

  • GET: Downloads file from server's file.
  • PUT: Uploads file to server.
  • CDIR: Scans directory of the client.
  • SDIR: Scans directory of the server.
  • EXIT: Exits the connection of the client with the server.

network-programming-master's People

Contributors

eunbinchoi avatar

Watchers

 avatar  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.