Changeset 168

Show
Ignore:
Timestamp:
05/21/06 15:12:42 (3 years ago)
Author:
abauer
Message:

Removed the allowLatestatus and no pending replies options

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/dev-branch/libsyncml/sml_session.c

    r166 r168  
    859859                                break; 
    860860                        case SML_PARSER_RESULT_STATUS: 
    861                                 if (session->allowLateStatus) 
    862                                         goto parse_status; 
    863                                 smlErrorSet(error, SML_ERROR_GENERIC, "Received a status after commands"); 
     861                                goto parse_status; 
    864862                        default: 
    865863                                goto error_free_cmd; 
     
    880878         * wait here for all open statuses, since they have to be added in the correct order and 
    881879         * the status for the open buffer is obviously last */ 
    882         if (session->incomingBuffer || session->noPendingReplies) { 
     880        if (session->incomingBuffer) { 
    883881                while (1) { 
    884882                        unsigned int cmdRef, msgRef = 0; 
     
    12821280} 
    12831281 
    1284 void smlSessionSetAllowLateStatus(SmlSession *session, SmlBool allow) 
    1285 { 
    1286         smlTrace(TRACE_ENTRY, "%s(%p, %i)", __func__, session, allow); 
    1287         smlAssert(session); 
    1288          
    1289         session->allowLateStatus = allow; 
    1290          
    1291         smlTrace(TRACE_EXIT, "%s", __func__); 
    1292 } 
    1293  
    1294 void smlSessionSetNoPendingReplies(SmlSession *session, SmlBool set) 
    1295 { 
    1296         smlTrace(TRACE_ENTRY, "%s(%p, %i)", __func__, session, set); 
    1297         smlAssert(session); 
    1298          
    1299         session->noPendingReplies = set; 
    1300          
    1301         smlTrace(TRACE_EXIT, "%s", __func__); 
    1302 } 
    1303  
    13041282void smlSessionSetSendingLimit(SmlSession *session, unsigned int limit) 
    13051283{ 
  • branches/dev-branch/libsyncml/sml_session.h

    r160 r168  
    5252void smlSessionUseStringTable(SmlSession *session, SmlBool useStringtable); 
    5353void smlSessionUseOnlyReplace(SmlSession *session, SmlBool onlyReplace); 
    54 void smlSessionSetAllowLateStatus(SmlSession *session, SmlBool allow); 
    55 void smlSessionSetNoPendingReplies(SmlSession *session, SmlBool set); 
    5654void smlSessionSetSendingLimit(SmlSession *session, unsigned int limit); 
    5755void smlSessionSetReceivingLimit(SmlSession *session, unsigned int limit); 
  • branches/dev-branch/libsyncml/sml_session_internals.h

    r160 r168  
    3030        SmlSessionType sessionType; 
    3131        SmlAssembler *assembler; 
    32         SmlBool allowLateStatus; 
    3332        SmlBool onlyReplace; 
    3433         
     
    8584         
    8685        SmlBool active; 
    87          
    88         /* If this variable is set to TRUE, the session will suspend before 
    89          * sending a message, to wait for the replies for the commands from the last 
    90          * message. Be carefull. If you dont add all replies, the session will of course 
    91          * wait forever */ 
    92         SmlBool noPendingReplies; 
    9386}; 
    9487 
  • branches/dev-branch/tools/syncml-http-server.c

    r166 r168  
    6565        fprintf (stderr, "\t\t\tyou can use more than one session\n\n"); 
    6666        fprintf (stderr, "[--recvLimit <limit>]\t\t\tLimit the size of the receiving buffer to this size (Needed for some phones)\n\n"); 
    67         fprintf (stderr, "[--allowLateStatus]\t\t\tAllows that a phone can send commands before statuses (Needed for some phones)\n\n"); 
    6867        fprintf (stderr, "[--maxObjSize <limit>]\t\t\tThe maximum size of a object that we can receive (Needed for some phones)\n\n"); 
    69         fprintf (stderr, "[--noPendingReplies]\t\t\tRequire that no pending replies are allowed (Needed for some phones)\n\n"); 
    7068        fprintf (stderr, "[--dumpinfo]\t\t\tPrint info about the phone at the end which can be sent to the developers\n"); 
    7169        fprintf (stderr, "Example: %s --port 9999 --sync vcal /events --sync vcard /addressbook --multi --san\n", name); 
     
    232230unsigned int recvLimit = 0; 
    233231unsigned int maxObjSize = 0; 
    234 SmlBool lateStatus = FALSE; 
    235 SmlBool noPending = FALSE; 
    236232SmlBool dumpinfo = FALSE; 
    237233SmlProtocolVersion sessionVersion = SML_VERSION_UNKNOWN; 
     
    265261                        if (maxObjSize) 
    266262                                smlSessionSetReceivingMaxObjSize(session, maxObjSize); 
    267                          
    268                         if (lateStatus) 
    269                                 smlSessionSetAllowLateStatus(session, lateStatus); 
    270                          
    271                         if (noPending) 
    272                                 smlSessionSetNoPendingReplies(session, noPending); 
    273263                        break; 
    274264                case SML_MANAGER_SESSION_FINAL: 
     
    405395                        i += 2; 
    406396                        continue; 
    407                 } else if (!strcmp (arg, "--allowLateStatus")) { 
    408                         lateStatus = TRUE; 
    409                 } else if (!strcmp (arg, "--noPendingReplies")) { 
    410                         noPending = TRUE; 
    411397                } else if (!strcmp (arg, "--dumpinfo")) { 
    412398                        dumpinfo = TRUE; 
     
    566552                        printf("ReceiveLimit: %i\n", recvLimit); 
    567553                        printf("MaxObjSize: %i\n", maxObjSize); 
    568                         printf("AllowLateStatus: %s\n", lateStatus ? "yes" : "no"); 
    569                         printf("NoPendingReplies: %s\n", noPending ? "yes" : "no"); 
    570554                        printf("Connection used: Obex\n"); 
    571555                        printf("\nDatabases:\n"); 
  • branches/dev-branch/tools/syncml-obex-client.c

    r166 r168  
    7575        fprintf (stderr, "[--recvLimit <limit>]\t\t\tLimit the size of the receiving buffer to this size (Needed for some phones)\n\n"); 
    7676        fprintf (stderr, "[--maxObjSize <limit>]\t\t\tThe maximum size of a object that we can receive (Needed for some phones)\n\n"); 
    77         fprintf (stderr, "[--allowLateStatus]\t\t\tAllows that a phone can send commands before statuses (Needed for some phones)\n\n"); 
    78         fprintf (stderr, "[--noPendingReplies]\t\t\tRequire that no pending replies are allowed (Needed for some phones)\n\n"); 
    7977        fprintf (stderr, "[--noStringTable]\t\t\tDont use wbxml string tables (Needed for some phones)\n\n"); 
    8078        fprintf (stderr, "[--dumpinfo]\t\t\tPrint info about the phone at the end which can be sent to the developers\n"); 
     
    248246unsigned int recvLimit = 0; 
    249247unsigned int maxObjSize = 0; 
    250 SmlBool lateStatus = FALSE; 
    251 SmlBool noPending = FALSE; 
    252248SmlBool dumpinfo = FALSE; 
    253249SmlBool noStringTable = FALSE; 
     
    281277                        if (maxObjSize) 
    282278                                smlSessionSetReceivingMaxObjSize(session, maxObjSize); 
    283                          
    284                         if (lateStatus) 
    285                                 smlSessionSetAllowLateStatus(session, lateStatus); 
    286                          
    287                         if (noPending) 
    288                                 smlSessionSetNoPendingReplies(session, noPending); 
    289279                                 
    290280                        if (noStringTable) 
     
    501491                                usage (argv[0], 1); 
    502492                        maxObjSize = atoi(argv[i]); 
    503                 } else if (!strcmp (arg, "--allowLateStatus")) { 
    504                         lateStatus = TRUE; 
    505                 } else if (!strcmp (arg, "--noPendingReplies")) { 
    506                         noPending = TRUE; 
    507493                } else if (!strcmp (arg, "--noStringTable")) { 
    508494                        noStringTable = TRUE; 
     
    701687                        printf("ReceiveLimit: %i\n", recvLimit); 
    702688                        printf("MaxObjSize: %i\n", maxObjSize); 
    703                         printf("AllowLateStatus: %s\n", lateStatus ? "yes" : "no"); 
    704                         printf("NoPendingReplies: %s\n", noPending ? "yes" : "no"); 
    705689                        printf("Connection used: Obex\n"); 
    706690                        printf("Identifier: %s\n", identifier);