Changeset 121

Show
Ignore:
Timestamp:
04/12/06 16:21:45 (3 years ago)
Author:
abauer
Message:

Made some updates to the http-tool to enabled some
bug workarounds for some phones

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/development-branch/tools/syncml-http-server.c

    r119 r121  
    6060        fprintf (stderr, "[--multi]\tNormally the tool exits after the first session ends. By using this option\n"); 
    6161        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"); 
    6365        fprintf (stderr, "Example: %s --port 9999 --sync vcal /events --sync vcard /addressbook --multi --san\n", name); 
    6466        exit (ecode); 
     
    218220 
    219221unsigned int recvLimit = 0; 
     222SmlBool lateStatus = FALSE; 
     223SmlBool noPending = FALSE; 
    220224 
    221225static void _manager_event(SmlManager *manager, SmlManagerEventType type, SmlSession *session, SmlError *error, void *userdata) 
     
    239243                        if (recvLimit) 
    240244                                smlSessionSetReceivingLimit(session, recvLimit); 
     245                         
     246                        if (lateStatus) 
     247                                smlSessionSetAllowLateStatus(session, lateStatus); 
     248                         
     249                        if (noPending) 
     250                                smlSessionSetNoPendingReplies(session, noPending); 
    241251                        break; 
    242252                case SML_MANAGER_SESSION_FINAL: 
     
    347357                        i += 2; 
    348358                        continue; 
     359                } else if (!strcmp (arg, "--allowLateStatus")) { 
     360                        lateStatus = TRUE; 
     361                } else if (!strcmp (arg, "--noPendingReplies")) { 
     362                        noPending = TRUE; 
    349363                } else if (!strcmp (arg, "--help")) { 
    350364                        usage (argv[0], 0);