Giter Club home page Giter Club logo

serversockettcp_udp's Introduction

Server Socket TCP UDP

TCP and UDP servers and its clients

Getting Started with udp test

Get and install the code on both server and client:

git clone https://github.com/geerdkakes/ServerSocketTCP_UDP.git
cd ServerSocketTCP_UDP
npm install

Run the server directly on a machine using:

node udp_server.js

Default the server listenes on port 21000. This can be adjusted by changing the config file: config/config.json

Run the client using:

node udp_client.js -h <dest_address> -c <client_name> -p 21000 -s <size>

where:

  • -h is the destination host (probably a server on the network)
  • -c is the client name from which you are running the test
  • -p is the port number the server is listening on. Default on 21000
  • -s is the packet size. Default (and minumum) is 149 bytes. This includes the udp header and corresponds to a payload of 117 bytes.
  • -i interval between packets in msec, default 1 second
  • -t time duration in seconds, default no limit

Running server on kubernetes using:

kubectl apply -f deployment-udp-server.yaml

Please note the kubernetes service and ingress is created for an Ericsson ECCD cluster and differs from a regular config. Changing the service to use a nodeport will do the trick.

Prerequisites

NodeJS 8 or above


## Acknowledgments

*  This is a fork from: https://github.com/rodrigoms2004/ServerSocketTCP_UDP.git
* [sid24rane](https://gist.github.com/sid24rane) - Git Hub from sid24rane
* [UDP Server and Client](https://gist.github.com/sid24rane/6e6698e93360f2694e310dd347a2e2eb) - Original UDP server and client


## License

Copyfree

serversockettcp_udp's People

Contributors

geerdkakes avatar rodrigoms2004 avatar

Watchers

James Cloos 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.