1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

more test packets & additional testPsyc debug msgs

This commit is contained in:
Gabor Adam Toth 2011-06-02 13:25:48 +02:00
parent d4b5ec2867
commit c5cfa7e119
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; value.length = 0;
do { 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) // Parse the next part of the packet (a routing/entity modifier or the body)
ret = exit_code = psyc_parse(&parsers[i], &oper, &name, &value); ret = exit_code = psyc_parse(&parsers[i], &oper, &name, &value);
if (verbose >= 2) if (verbose >= 2)