Giter VIP home page Giter VIP logo

go-client-server's Introduction

Go Client-Server Test App

What is This?

This application is a learning exercise for making a very simple UDP client and server in GoLang.

How to Use

  1. Install Go
  2. Run the server with ./server.sh (if you have bash) or go run core.go udp-server.go
    • Optionally add a param for port, e.g. ./server.sh 40000
    • The server will start up and wait for data from the client(s).
    • Server is very dumb, and just echoes data that it receives.
  3. Run the client with ./client.sh or go run core.go udp-client.go on a separate machine or separate terminal.
    • Optionally add a param for host and port like ./client.sh example.com:40000 (default is localhost 127.0.0.1:40000)
    • The client will start up and await for your commands.
  4. Enter any text, e.g., Hello world, on the client and hit enter. You should see the text sent from client to server, then echoed back from server to client.
  5. Enter STOP to stop both the client and the server.
  6. Enter SEND to begin continually sending data from the client to the server for 10 minutes.
    • Purpose of this is to test the packet drop-rate.
    • After the cycle stops the number of expected and received packets and bytes should be shown, and a STOP command will be issued.
    • (Note: This is untested in a real environment.)

Good Resources

go-client-server's People

Contributors

lukenickerson avatar

Stargazers

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