phuongdh / traceroute Goto Github PK
View Code? Open in Web Editor NEWTraceroute server for CSCI-P538
Traceroute server for CSCI-P538
public traceroute server ======================= Server ------ traceroute server implementation which takes in a destination IP address or a hostname and displays the traceroute results of the traceroute utility. The server can be invoked as ./tracerouteServer [PORT <port number> RATE <number requests> <number seconds> MAX_USERS <number of users> STRICT_DEST <0 or 1>] Server logs the main commands excuted and the errors resultes including the following Connection information 1. server connecting on port : 1620 with maximum request count: 2 in 6 seconds. 2. Allowed maximum number of concurrent users are : 1 3. Strict destination enabled : 1 4. User number: 1 Errors 1. Invalid port number. 2. Socket opening errors. 3. Socket binding errors. 4. Accepting request errors. 5. Max number of users exceeds. 6. Reading data from client errors. Issued Commands 1.trace route [destination] 2. traceroute me 3. help 4. quit 5. Invalid commands Client ------ simple telnet client that reads the user input commands, sends the commnads to server and display results back to user. References --------- Client server implementation details http://www.linuxhowtos.org/C_C++/socket.htm http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html Regular expression to validate IP address & Hostname http://stackoverflow.com/questions/106179/regular-expression-to-match-hostname-or-ip-address
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.