Forum

Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Join Date
    May 2016
    Location
    Idar-Oberstein
    Posts
    163
    That may be intended behaviour if we're talking about actual function return value.

    What a function returns is about what the client has to say about the matter.
    request_ functions however are about communicating with the server (asynchronuously).
    What the server, however, has to say about this, will be replied via the onServerErrorEvent and onServerPermissionErrorEvent.
    request_ functions have a const char* returnCode parameter.
    If it is not used aka nullptr, the event only gets triggered in case of an error.
    If it is used, the event gets triggered in any case, with ERROR_ok in case of success.

    So in appliance the returned error code ERROR_ok states that, yes, the client sent out the request to the server.
    If the server however was ok with that and executed the action is being communicated via the onServerErrorEvent/onServerPermissionErrorEvent + returnCode mechanism.

  2. #17
    Join Date
    January 2016
    Posts
    4
    Quote Originally Posted by thorwe View Post
    That may be intended behaviour if we're talking about actual function return value.

    What a function returns is about what the client has to say about the matter.
    request_ functions however are about communicating with the server (asynchronuously).
    What the server, however, has to say about this, will be replied via the onServerErrorEvent and onServerPermissionErrorEvent.
    request_ functions have a const char* returnCode parameter.
    If it is not used aka nullptr, the event only gets triggered in case of an error.
    If it is used, the event gets triggered in any case, with ERROR_ok in case of success.

    So in appliance the returned error code ERROR_ok states that, yes, the client sent out the request to the server.
    If the server however was ok with that and executed the action is being communicated via the onServerErrorEvent/onServerPermissionErrorEvent + returnCode mechanism.
    Okay i understand it, thanks for solving my mistake. I could do it well with the _onServerErrorEvent

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. NSA Data Collection
    By KwikKarl in forum General Questions
    Replies: 4
    Last Post: June 14th, 2013, 10:50 PM
  2. Client Crashdump Collection
    By ScP in forum Windows
    Replies: 643
    Last Post: May 24th, 2011, 06:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •