Git Product home page Git Product logo

udp-echo-server's Introduction

udp-echo-server's People

Contributors

mqp avatar rolandbaer avatar umakantkulkarni avatar

Watchers

 avatar

udp-echo-server's Issues

Windows running returns error: [WinError 10013]

E:\Test Server\python\udp-echo-server-master>py -3 udpecho.py -S
Traceback (most recent call last):
File "E:\Test Server\python\udp-echo-server-master\udpecho.py", line 214, in
start_server(ARGS)
File "E:\Test Server\python\udp-echo-server-master\udpecho.py", line 158, in start_server
sender = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_RAW)
File "C:\Program Files\Python39\lib\socket.py", line 232, in init
_socket.socket.init(self, family, type, proto, fileno)
OSError: [WinError 10013] An attempt was made to access the socket in a way that is not permitted by the access permissions.
It seems to be the problem caused by "sender = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_RAW)", but the reason is not clear

Quiet mode

With the parameter --quiet (short -q) no sent or received messages are shown but only the start message and the summary.

nice shutdown of server

The server is stopped via CTRL-C, which leads to a stack trace message.
A proper shutdown of the server with a nice output should be implemented.

Definable payload

Currently the message is created randomly.
It should be possible to define a message that will be sent instead of the random message (like ping on linux systems).

Add Statistics in Client

Add a statistic calculation and output as the ping tool does it (n packets transmitted, m received, x% loss)

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.