more test packets & additional testPsyc debug msgs

This commit is contained in:
tg(x) 2011-06-02 13:25:48 +02:00
parent bf2a316d43
commit ac7b059b9c
6 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,4 @@
_message_private
OHAI
|

1
test/packets/00-empty Normal file
View File

@ -0,0 +1 @@
|

View File

@ -0,0 +1,4 @@
22
_message_private
OHAI
|

View File

@ -0,0 +1,6 @@
:_source psyc://foo.example.com/
:_target psyc://bar.example.com/
22
_message_private
OHAI
|

View File

@ -0,0 +1,3 @@
_
|

View File

@ -80,6 +80,8 @@ int test_input (int i, char *recvbuf, size_t nbytes) {
value.length = 0;
do {
if (verbose >= 3)
printf("\n# buffer = [%.*s]\n# part = %d\n", (int)parsers[i].buffer.length, parsers[i].buffer.ptr, parsers[i].part);
// Parse the next part of the packet (a routing/entity modifier or the body)
ret = exit_code = psyc_parse(&parsers[i], &oper, &name, &value);
if (verbose >= 2)