Giter VIP home page Giter VIP logo

traceroute's Introduction

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




traceroute's People

Contributors

phuongdh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

weingartens

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.