Exemplo n.º 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 ();
        }
Exemplo n.º 2
0
 public RStation(Network network, string destinationFile)
     : base(network)
 {
     this._destinationFile = destinationFile;
 }
Exemplo n.º 3
0
 // number of packet in the buffer
 public Station(Network network)
 {
     this.network = network;
 }
Exemplo n.º 4
0
 public EStation(Network network, string sourceFile)
     : base(network)
 {
     this._sourceFile = sourceFile;
 }