Auservertest

From Rsewiki

The auservertest is a server that makes a port available, but just displayes on the console what is received (with a timestamp).

To start the auservertest opening a 24920 port use:

$ auservertest -p 24920
uServer-2.617 (Feb 21 2011 19:18:43 jca@oersted.dtu.dk)
 - on port 24920
 - h=help, q=quit, p=print client status
>> Got new client (127.0.0.1)
New namespace: 'cam' from '<cam name="cam" version="200">'
1298457617.401097 (11:40:17.401) client 0:
push t=4 imageget
1298457617.401104 (11:40:17.401) client 0:
push t=3 cmd='var allcopy'
>> 
>> p
Default client is 0
status:on smr1 port 24920  running, has 1 clients (rx loops 193) verbose false
 - clnt#0 is active (127.0.0.1) last rx 11:40:55.894 rxMsg 52 txCnt 48 skip'd  0
          namespace: '<cam name="cam" version="200">'
 - rxQueue queue is empty (out 2, in 2)

In this example the auservertest is started on port 24920.

Then one client client connects to the port and sends the XML opening tags (these opening tags are not needed, but are recognized by the auservertest).

After this, two text lines (commands) are send from client 0: "push t=4 imageget" and "push t=3 cmd='var allcopy'", each followed by a newline (not shown).

Each text line is preceded with a time tag, as:

1298457617.401097 (11:40:17.401) client 0:

The auservertest understands 4 commands:

  • p\n (p followed by enter) displayes the client situation (and the status of the receive queue buffer) as shown in the example above.
  • h\n displayes a help text
  • q\n stops the auservertest
  • N:command sends the 'command' to client number N.