Changes between Version 1 and Version 2 of Old/Documentation/OTG/FuncSpec/OtrMainProgram


Ignore:
Timestamp:
Oct 6, 2005, 6:43:22 PM (19 years ago)
Author:
zhibinwu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Old/Documentation/OTG/FuncSpec/OtrMainProgram

    v1 v2  
    4242As can be seen, this is a very clean and short program. I explain it in detail.
    4343
    44  1. First an [source:otg/trunk/src/cpp/orbitappt.h#latest OrbitApp] object is createdd to handle all OML-related stuff.
     44 1. First an [source:otg/trunk/src/cpp/orbitappt.h#latest OrbitApp] object is created to handle all OML-related stuff.
    4545 1. Parsing user command-line input to determine
    4646   1. protocol type
     
    5050 1. Conduct 2nd-tier parse to get all detail parameters of Gate such as receiving port.
    5151 1. Init Gate
    52  1. Create a seperate thread to let Gate start receiving packets.
    53  1. An eternal while loop is actting as the continuing main thread to handle run-time user inputs.
     52 1. Create a separate thread to let Gate start receiving packets.
     53 1. An eternal while loop is acting as the continuing main thread to handle run-time user inputs.
    5454 
    5555=== Discussion ===
    56 It is possible to have multiple gates in one OTR application. More gates,listening to more ports and we could create more threads. But it seems there is no need to do this. Users care more than lower-layer link performance than have multiple competitive applications running on one single port.
     56It is possible to have multiple gates in one OTR application. More gates listening to more ports and we could create more threads. But it seems there is no need to do this. Users care more than lower-layer link performance than have multiple competitive applications running on one single port.
    5757 
    5858