This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
pram ="""<?xml version="1.0" encoding="UTF-8"?> | |
<proxy xmlns="http://ws.apache.org/ns/synapse" | |
name="vfs_{0}" | |
transports="https,http" | |
statistics="disable" | |
trace="disable" | |
startOnLoad="true"> | |
<target> | |
<inSequence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<clustering class="org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent" | |
enable="true"> | |
<parameter name="AvoidInitiation">true</parameter> | |
<parameter name="membershipScheme">multicast</parameter> | |
<parameter name="domain">wso2.carbon.domain</parameter> | |
<parameter name="mcastPort">45564</parameter> | |
<parameter name="mcastTTL">100</parameter> | |
<parameter name="mcastTimeout">60</parameter> | |
<parameter name="localMemberHost">box1.vanji.com</parameter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<h1><script language="JavaScript"> | |
TargetDate = "12/02/2013 8:40 AM"; | |
BackColor = "palegreen"; | |
ForeColor = "navy"; | |
CountActive = true; | |
CountStepper = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
<script type="text/javascript"> | |
var origin = "Colombo, Srilanka", | |
destination = "Stockholm, Sweden", | |
service = new google.maps.DistanceMatrixService(); | |
service.getDistanceMatrix( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: vanji | |
* Date: 5/17/13 | |
* Time: 9:31 AM | |
*/ | |
public class Server | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: vanji | |
* Date: 5/17/13 | |
* Time: 9:31 AM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public class Client{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Experimention :- TCP flow vs UDP flow | |
# Experimenter :- Sivajothy Vanjikumaran | | |
#Create a simulator object | |
set ns [new Simulator] | |
#Colors Define | |
$ns color 1 brown | |
$ns color 2 green | |
#Save throughput for the First tcp flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Experimention :- TCP flow vs TCP flow | |
# Experimenter :- Sivajothy Vanjikumaran | |
#Create a simulator object | |
set ns [new Simulator] | |
#Colors Define | |
$ns color 1 brown | |
$ns color 2 green | |
#Save throughput for the First tcp flow | |
set f1 [open tcp-tcp-one.tr w] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns="http://ws.apache.org/ns/synapse"> | |
<registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"> | |
<parameter name="cachableDuration">15000</parameter> | |
</registry> | |
<proxy name="EntitlementService" | |
transports="https" | |
startOnLoad="true" | |
trace="disable"> |