I'll have to play with it more later. Seems like something isn't getting reset. I patched it like that:
--- irobex_palm3.c.orig Tue Feb 18 10:05:06 2003
+++ irobex_palm3.c Tue Feb 18 23:15:09 2003
@@ -73,11 +73,14 @@
if (argc == 1) {
/* We are server*/
+ while(1) {
printf("Waiting for files\n");
IrOBEX_ServerRegister(handle, "OBEX");
while (!finished)
OBEX_HandleInput(handle, 1);
+ finished = 0;
+ }
}
else {
/* We are a client */
But it only works once:
sh-2.03# irobex_palm3
Send and receive files to Palm3
Waiting for files
..HEADER_LENGTH = 21
put_done() Skipped header 05
CREATORID = 0x6d656d6f
Filename = textfile.txt
Wrote /tmp/textfile.txt (21 bytes)
Waiting for files
Link broken (this does not have to be an error)!
Waiting for files
I tried to send another memo, but nothing happened, so I pressed ^C
Segmentation fault
I'll see if I can take a closer look later.