GithubHelp home page GithubHelp logo

jv813yh / simple_example_tcp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 101 KB

Simple demo of a server and a client, they communicate together using the TCP communication channel without protection.

Batchfile 2.06% C 97.94%

simple_example_tcp's Introduction

simple_example_tcp

The example_tcp folder contains a simple example of a server and a client which They communicate together using the TCP communication channel. The server works on port 8080 (macro PORT) . A client that knows the IP address server and the port number on which the server is listening will connect to the server. The client enters this information when calling the application. The client sends the data entered from the command line. The server provides a service that translates lowercase letters in the text sent to the client in capital letters (with toupper()) and sent back to the client. The client displays the received data on the screen.

No dynamic memory allocation, no socket multiplexing, it is possible to operate only one
duplex communication without creating other new connections.

If you want cryptographically secured communication: https://github.com/jv813yh/simple_example_tcp_salt_channel

Windows:

with .bat files or command line

Linux:

gcc tcp_client.c -Wall -Wextra -o2 -o tcp_client

gcc tcp_serve_toupper.c -Wall -Wextra -o2 -o tcp_server

simple_example_tcp's People

Contributors

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