Beispiel #1
0
        public static void Main(string[] args)
        {
            //Console.WriteLine ("Hello World!");

            Network network = new Network ();
            Station sender = new EStation (network, ConfigurationManager.AppSettings ["SourceFilePath"]);
            Station receiver = new RStation (network, ConfigurationManager.AppSettings ["DestinationFilePath"]);

            Console.WriteLine ("Starting network!");
            network.manageRequests ();

            Console.WriteLine ("Starting the sender!");
            sender.start ();

            Console.WriteLine ("Starting the receiver!");
            receiver.start ();
        }
Beispiel #2
0
 public RStation(Network network, string destinationFile)
     : base(network)
 {
     this._destinationFile = destinationFile;
 }
Beispiel #3
0
 // number of packet in the buffer
 public Station(Network network)
 {
     this.network = network;
 }
Beispiel #4
0
 public EStation(Network network, string sourceFile)
     : base(network)
 {
     this._sourceFile = sourceFile;
 }