Changeset 121
- Timestamp:
- 04/12/06 16:21:45 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/development-branch/tools/syncml-http-server.c
r119 r121 60 60 fprintf (stderr, "[--multi]\tNormally the tool exits after the first session ends. By using this option\n"); 61 61 fprintf (stderr, "\t\t\tyou can use more than one session\n\n"); 62 fprintf (stderr, "[--recvLimit <limit>]\t\t\tLimit the size of the receiving buffer to this size (Needed for some phones)\n"); 62 fprintf (stderr, "[--recvLimit <limit>]\t\t\tLimit the size of the receiving buffer to this size (Needed for some phones)\n\n"); 63 fprintf (stderr, "[--allowLateStatus]\t\t\tAllows that a phone can send commands before statuses (Needed for some phones)\n\n"); 64 fprintf (stderr, "[--noPendingReplies]\t\t\tRequire that no pending replies are allowed (Needed for some phones)\n"); 63 65 fprintf (stderr, "Example: %s --port 9999 --sync vcal /events --sync vcard /addressbook --multi --san\n", name); 64 66 exit (ecode); … … 218 220 219 221 unsigned int recvLimit = 0; 222 SmlBool lateStatus = FALSE; 223 SmlBool noPending = FALSE; 220 224 221 225 static void _manager_event(SmlManager *manager, SmlManagerEventType type, SmlSession *session, SmlError *error, void *userdata) … … 239 243 if (recvLimit) 240 244 smlSessionSetReceivingLimit(session, recvLimit); 245 246 if (lateStatus) 247 smlSessionSetAllowLateStatus(session, lateStatus); 248 249 if (noPending) 250 smlSessionSetNoPendingReplies(session, noPending); 241 251 break; 242 252 case SML_MANAGER_SESSION_FINAL: … … 347 357 i += 2; 348 358 continue; 359 } else if (!strcmp (arg, "--allowLateStatus")) { 360 lateStatus = TRUE; 361 } else if (!strcmp (arg, "--noPendingReplies")) { 362 noPending = TRUE; 349 363 } else if (!strcmp (arg, "--help")) { 350 364 usage (argv[0], 0);
