Assignment 3 - questions

Moderator: Praktikum: Internet

mjp
Neuling
Neuling
Beiträge: 7
Registriert: 16. Apr 2006 11:34

Assignment 3 - questions

Beitrag von mjp » 21. Jan 2008 13:20

Hi,

we are currently working on milestone one. Our first question: in the directory 'mundocore-0.9.2\samples\handlers\praktikum\' there are two xml-files, a 'sender.conf.xml' and a 'receiver.conf.xml'. In the directories 'ex1' to 'ex5' there are no such xml files for sender or receiver. There is however a 'node.conf.xml'. Why this difference? Do we need a node.conf.xml too? Or do 'sender.conf.xml' and 'receiver.conf.xml' replace 'node.conf.xml'?

Our second question: We know we have to expect package-loss. However, do we also have to bear in mind that packages could be changed (e.g. by a bit-flip) ?

erwin.ait
Erstie
Erstie
Beiträge: 20
Registriert: 23. Jul 2007 16:34

Re: Assignment 3 - questions

Beitrag von erwin.ait » 23. Jan 2008 12:57

MundoCore reads its configuration from node.conf.xml by default.
You can call, e.g., Mundo.setConfigFile("receiver.conf"); (The extension .xml will be appended automatically!) to use an alternate configuration file.

The last example uses two separate configuration files to define different protocol stacks for sender and receiver. This is also necessary, because otherwise the TraceHandlers of sender and receiver would both write to the same output files. (If started in the same directory.)

Erwin

Antworten

Zurück zu „Praktikum: Internet“