Source Code Analysis



Similar documents
SETTING UP AND RUNNING A WEB SITE ON YOUR LENOVO STORAGE DEVICE WORKING WITH WEB SERVER TOOLS

Elgg 1.8 Social Networking

SparkLab May 2015 An Introduction to

Create e-commerce website Opencart. Prepared by : Reth Chantharoth Facebook : rtharoth@yahoo.

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

Architecture and Mode of Operation

TREK GETTING STARTED GUIDE

Office Fax

Installation and Configuration Manual

FileMaker 13. ODBC and JDBC Guide

Oracle Exam 1z0-102 Oracle Weblogic Server 11g: System Administration I Version: 9.0 [ Total Questions: 111 ]

SDK Code Examples Version 2.4.2

FileMaker 12. ODBC and JDBC Guide

SpagoBI exo Tomcat Installation Manual

Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version

Reseller Quick Start Guide 1. Domain & Name Servers...2. Payment Gateways Dedicated Servers Setup Your Landing Page/Website...

SysPatrol - Server Security Monitor

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

Log Analyzer Reference

About This Document 3. Integration and Automation Capabilities 4. Command-Line Interface (CLI) 8. API RPC Protocol 9.

LDAPCON Sébastien Bahloul

LICENSE4J FLOATING LICENSE SERVER USER GUIDE

PAW Web Filter Version 0.30 (release) This Software is Open Source. project.sourceforge.net

How To Backup A Database On A Microsoft Powerpoint 3.5 (Mysqldump) On A Pcode (Mysql) On Your Pcode On A Macbook Or Macbook (Powerpoint) On

LAMP [Linux. Apache. MySQL. PHP] Industrial Implementations Module Description

CrownPeak Playbook CrownPeak Hosting with PHP

Braindumps.C questions

Database Extension 1.5 ez Publish Extension Manual

1Z Oracle Weblogic Server 11g: System Administration I. Version: Demo. Page <<1/7>>

Oracle WebLogic Foundation of Oracle Fusion Middleware. Lawrence Manickam Toyork Systems Inc

ArpViewer Manual Version Datum

BIRT Application and BIRT Report Deployment Functional Specification

E-Commerce: Designing And Creating An Online Store

ACE: Dreamweaver CC Exam Guide

Creating a Java application using Perfect Developer and the Java Develo...

ProxiBlue Dynamic Category Products

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

Installation Guide of the Change Management API Reference Implementation

Cyber Security Challenge Australia 2014

FileMaker 14. ODBC and JDBC Guide

1z0-102 Q&A. DEMO Version

W3Perl A free logfile analyzer

WebIOPi. Installation Walk-through Macros

Cisco Networking Academy Program Curriculum Scope & Sequence. Fundamentals of UNIX version 2.0 (July, 2002)

EMC Documentum Composer

DiskPulse DISK CHANGE MONITOR

JBOSS ESB. open source community experience distilled. Beginner's Guide. Enterprise. Magesh Kumar B

TREK HOSC PAYLOAD ETHERNET GATEWAY (HPEG) USER GUIDE

Online Backup Client User Manual

Course Name: Course in JSP Course Code: P5

Migration Guide Software, Database and Version Migration

<Insert Picture Here> What's New in NetBeans IDE 7.2

Web Application Development

KonyOne Server Installer - Linux Release Notes

Skynax. Mobility Management System. System Manual

WebObjects Deployment Guide Using JavaMonitor. (Legacy)

KonyOne Server Prerequisites _ MS SQL Server

Short notes on webpage programming languages

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

ALERT installation setup

HTML5. Turn this page to see Quick Guide of CTTC

Oracle Service Bus Examples and Tutorials

FileMaker Server 9. Custom Web Publishing with PHP

i2b2 Installation Guide

FileMaker 11. ODBC and JDBC Guide

Release Bulletin EDI Products 5.2.1

CA Identity Manager. Glossary. r12.5 SP8

Adobe Summit 2015 Lab 712: Building Mobile Apps: A PhoneGap Enterprise Introduction for Developers

Lucid Key Server v2 Installation Documentation.

HR Onboarding Solution

Running Nginx as Reverse Proxy server

PDQ-Wizard Prototype 1.0 Installation Guide

THE OPEN UNIVERSITY OF TANZANIA

Electronic Ticket and Check-in System for Indico Conferences

How to start with 3DHOP

Portals and Hosted Files

Python for Series 60 Platform

Expresso Quick Install

Open Source Telemedicine Android Client Development Introduction

Certified PHP/MySQL Web Developer Course

How to Run Spark Application

Digital Downloads Pro

SOA Software: Troubleshooting Guide for Agents

FileMaker Server 13. FileMaker Server Help

SelectSurveyASP Install Guide

Configuring the LCDS Load Test Tool

Python and Google App Engine

HDFS to HPCC Connector User's Guide. Boca Raton Documentation Team

Sabre Red Apps. Developer Toolkit Overview. October 2014

HOW TO DEPLOY AN EJB APLICATION IN WEBLOGIC SERVER 11GR1

STABLE & SECURE BANK lab writeup. Page 1 of 21

SafeNet KMIP and Google Cloud Storage Integration Guide

About This Document 3. About the Migration Process 4. Requirements and Prerequisites 5. Requirements... 5 Prerequisites... 5

Bitrix Site Manager ASP.NET. Installation Guide

Transcription:

Source Code Analysis

Author Final revision Date Hao Zhuang, Guojun Wang 1.5 Summary... 3 1. C/C++ DTN2 Services Client... 4 1.1 dtnhttpsqs... 4 1.2 dtnmail... 4 2. PHP Client Application... 5 2.1 PHP Web Interface... 5 2.1.1 WSN... 5 2.1.2 SSA... 6 2.2 PHP Mail Server... 7 3. Python Client for DTN Management Tool... 8 4. Java Client WSN Core-Engine onvoyage... 8 5. Java Code on Sun SPOT Motes... 8 6. Database SQL Script... 9 7. Performance Test Shell Script... 9

Summary This document gives the analysis of source codes.

1. C/C++ DTN2 Services Client 1.1 dtnhttpsqs dtnhttpsqs client provides basic services over DTN network including dtnsend, dtnrecv, dtncp and dtncpd. dtnhttpcp.h dtnhttpcp.c dtnhttpcpd.h dtnhttpcpd.c dtnhttprecv.h dtnhttprecv.c dtnhttpsend.h dtnhttpsend.c dtnhttpsqs.h dtnhttpsqs.c HandleRequest.h HandleRequest.cpp httpsqsclient.h httpsqsclient.c HttpsqsMessage.h HttpsqsMessage.cpp HttpsqsMessageHandler.h HttpsqsMessageHandler.cpp includes.h QueueManager.h QueueManager.cpp util.h util.cpp make.sh clean.sh copy a bundle to a valid destination eid and return the filename to the middleware receive a bundle and return the file path to the middleware receive a bundle on a registration and return the received message to the middleware sends a bundle with payload of file, tmpfile, message, or date and return the status if the messages send successfully Main method analyze the request message and process the request C/C++ client for httpsqs which put and get the messages to middleware HttpsqsMessage class Marshall and unmarshall the HttpsqsMessage to XML string Contains all the include header file Queue manager to manage the different queues Utility class Make script the compile the source code Clean script to clean the file 1.2 dtnmail DTN Mail is a C/C++ client application for both DTN2 and DSAM. It is responsible for receiving bundles and if the bundles are special for email, it will forward to Email Server in the city network. This application runs on the city gateway. dtnmail.h dtnmail.c httpsqsclient.h httpsqsclient.c includes.h make.sh clean.sh receive the bundles and forward message to Email Server C/C++ client for httpsqs which put and get the messages to middleware Contains all the include header file Make script the compile the source code Clean script to clean the file

2. PHP Client Application 2.1 PHP Web Interface 2.1.1 WSN PHP web client runs in the gateway either in the remote or city area. It is designed to serve as web interfac to the user to control the WSN and DTN service. amline amline_example amline_original css download httpsqs images js mail addroute.php Collecthistory.php collectionmanage.php Datacontrol.php Datamanage.php Dbmanage.php Delroute.php Dtncontrol.php Dtncpd.php Dtncpdcontrol.php Dtncpres.php Dtnheader.html Dtnhome.html Dtnmail.php Dtnmailres.php Dtnstart.php Footer..html gatewaymanager.php Graph.php Graphxml.php Header.html Index.html routeinfo.php routemanage.php Sendemail.php Sunspot.php Amline to graph the data css file The file is put in the download folder Contains the httpsqs client for php Contains all the images Javascript Mail message Add route information to DTN2 Show the collect history process the request from wsncontrol.php process the request from the datacontrol.php start to manage the data for distribute, download and graph data To init the database tables delete a route start or stop the dtn; list bundles info and bundle stats start to receive the file process the request of dtncpd.php Response page for dtncp.php Dtn header file Dtn home page Send email over DTN through web pages Response to email service action, deal with the request from dtncontrol.php page footer list all the gateway information graph the data on the picture dynamic generate the xml file as a data source Header file Index main page display the route information for DTN2 process the request from addroute.php and routemanage.php Send mail which read mail from /var/www/wsn/mail folder updte sunspot information

Sunspotlist.php list all the sunspot connected to a gateway. updategatewayinfo.php update the gateway information Wsncontrol.php start the wsn engine to collect environment data Wsnheader.php Wsn page header Wsnhome.html Wsn home page 2.1.2 SSA The goal of the SSA is to provide a facility to report medical related data such as the level of the stock of medical drugs or number of patients in a village to a healthcare authority located in another remote region such as a city by using the Bytewalla DTN network. ssahome.html register1.php insert.php login.php home page of the ssa user registration code patient registration code code for logging in of registered users logout.php user session ends with this code member.php small code for running the log in session query.php search the patient info. in database feedback.php Feedback to patient, stored in database casedetail.php display the searched cases exportdata.php export the searched cases to text file dtncpres.php Response page for dtncp.php dtncpd.php start to receive the file dtncpdcontrol.php process the request of dtncpd.php string.txt httpsqs floder css floder images floder download floder sql commands for creating tables Contains the httsqs client for php contains styling and layout files for website contains images used for the website All the exported data are saved in this file.

js floder header.php footer.php javascript for animation for website header for the website footer for the website 2.2 PHP Mail Server PHP Mail Proxy runs on the Email Server to send the email to the Internet. dtnemail.php get the message from the HTTPSQS middleware and send the message out with mailto function httpsqs_client.php php client for HTTPSQS

3. Python Client for DTN Management Tool DTN Management Tool is to provide a user-friendly management tool for application users including start and stop DTN2, route and bundle information configuration. dtnconctroller.py Analyze and process the requests for dtn2 management dtnmanagement.py Start, stop DTN2 and get bundle and route information httpsqs_client.py Python client API for put and get message 4. Java Client WSN Core-Engine onvoyage Java client on Voyage Gataeway are connected to base station which is used to receive the data that is broadcasted / multicasted by the WSN Mote(s). build The folder contains the object class after compilation. jdbc-driver Contains the external jar library such as jdbc and jdom build.properties Properties file for a Sun Spot Host Application main.class= give the path of main class main.args= give the path of external library Src Contains all the Java source code com.dtn.wsn.dao Contains Data Access Object(DAO) to access the database com.dtn.wsn.database ConnectionPool to manage the database connections com.dtn.wsn.demo WSNApplication and main method com.dtn.wsn.entity entity classes com.dtn.wsn.filemanager File operation like compress and uncompress the files com.dtn.wsn.httpsqs Java client for httpsqs to send and receive the messages com.dtn.wsn.middleware Contains httpsqsmessage handler to marshal and unmarshal the XML message com.dtn.wsn.sunspot Contains sunspot connection, data store and data analysis 5. Java Code on Sun SPOT Motes build j2meclasses nbproject src build.properties The folder contains the object class after compilation. The class file created from the compilation Containing project specific IDE settings and metadata of the project to be created Containing the source code of this application Properties file for a Sun Spot Host Application main.class= give the path of main class main.args= give the path of external library

6. Database SQL Script The SQL script contains two parts: wsn and ssa. The scripts excute in mysql. In our project, all the database username is root and password is bytewalla5. 7. Performance Test Shell Script This contains two shell script when we conduct the power consumption analysis. It is used to send different size of bundles automatically.