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