My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
DocumentationDevNotes  
Devnotes
Updated May 18, 2010 by spiderwebmail@gmail.com

Introduction

The code was developed and tested in following enviroments

IDEs:

  1. Netbeans 6.8
  2. Eclipse Galileo

Operating Systems:

  1. Windows XP sp3
  2. Ubuntu Linux 9.10

Class Diagram

The class diagram below shows the core architecture, it shows the core classes where interesting stuff happens:

Protocol Examples

The protocol uses synchronous messages to set the remote machine ready. The manager machine sends a request for an operation and waits for a confirmation from the managed machine.

Sender Machine

On this example we can see the manager machine sending a request to dispacher thread on a specific port. The dispacher thread then creates a new worker to fulfill the task of generating packets. As soon as the new worker is created the dispacher send the reply, confirming the success of the operation. The manager is waiting for this reply on a specific port, (blocking user input?) and when it arrives the user is informed from the Graphic Interface.

At the end of its life the worker thread sends a message to a status port on the manager, informing that it has finished its work. The manager may or may not be expecting the message in the current build.

Receiver Machine

Another example of the protocol used: the receiver machine is set to receive a traffic. When the message to the Dispacher on the receiving machine, it spawns a new worker to start receiving the packets. The thread is then run immediately so it will not drop any packets.

In the current build the receiver runs forever until the manger tells it to shutdown. A better approach would be to set a timer when the first package arrives with the duration of the traffic 1.5. This would prevent treads from dead traffics consumming extra resources.

See Also

TutorialNetbeans

TutorialEclipse

Powered by Google Project Hosting