A Protocol-Level Example Session

Here is an example session with two modules and the Broker. One module is an addition server, called "Adder" which implememts two functions: "add" with a variable number of integer arguments returning the sum, and "quit" which makes the server quit.

The client (AClient) uses the Adder. All communication between the models will be illustrated
 
Time Direction Message
t0 Adder to Broker SERVER Adder
t1 AClient to Broker CLIENT AClient
t1+1 Broker to AClient NAME AClient@x.com:3333
t1+2 > t0 AClient to Broker CALL FUNC AClient@x.com:3333 1 Adder INLINE add 3 2 5
t1+3 Broker to Adder CALL FUNC AClient@x.com:3333 1 Adder INLINE add 3 2 5
t1+4 Adder to Broker RETURN AClient@x.com:3333 1 INLINE 10
t1+5 Broker to AClient RETURN AClient@x.com:3333 1 INLINE 10
t2 > (t1+1), t0 AClient to Broker CALL FUNC AClient@x.com:3333 2 Adder INLINE add a b c
t2+1 Broker to Adder CALL FUNC AClient@x.com:3333 2 Adder INLINE add a b c
t2+2 Adder to Broker ERROR AClient@x.com:3333 2 You can't add letters, silly!
t2+3 Broker to AClient ERROR AClient@x.com:3333 2 You can't add letters, silly!
t3 > (t2+3), (t1+5) AClient to Broker CALL PROC Adder INLINE quit
t3+1 Broker to Adder CALL PROC Adder INLINE quit
t3+2 Adder to Broker CLOSE
t4 > t3 AClient to Broker CLOSE
 


Up: The Broker Protocol

 © Copyright 1997 Erland Lewin and the members of the Center for Speech Technology