Changeset 46d70a
- Timestamp:
- 01/12/12 14:43:58 (17 months ago)
- Branches:
- ('master', '668dd99ac278cfd419d67879b141678facea630a')('windows_service_fixes', 'df6bd2788365991d36d5af2a75833b8de2a5860f')
- Children:
- 915d47dc1c4970c1a8c3abe077af197298a4777f
- Parents:
- 5190c42f773010577f33be19f06db2b62d6ea9c4
- git-author:
- Micke Prag <micke.prag@telldus.se>2012-01-12 11:49:12+01:00
- git-committer:
- Micke Prag <micke.prag@telldus.se>2012-01-12 14:43:58+01:00
- Location:
- telldus-core/client
- Files:
-
- 3 edited
-
Client.cpp (modified) (1 diff)
-
telldus-core.cpp (modified) (3 diffs)
-
telldus-core.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telldus-core/client/Client.cpp
rb84e8b r46d70a 115 115 int Client::getIntegerFromService(const Message &msg) { 116 116 std::wstring response = sendToService(msg); 117 if (response.compare(L"") == 0) { 118 return TELLSTICK_ERROR_COMMUNICATING_SERVICE; 119 } 117 120 return Message::takeInt(&response); 118 121 } -
telldus-core/client/telldus-core.cpp
rb84e8b r46d70a 89 89 * Error code. Input/command could not be parsed or didn't follow 90 90 * input rules. 91 * 92 * @def TELLSTICK_ERROR_COMMUNICATING_SERVICE 93 * Error code. Timeout waiting for response from the Telldus Service. 91 94 * 92 95 * @def TELLSTICK_ERROR_UNKNOWN … … 492 495 * @sa TELLSTICK_ERROR_SYNTAX 493 496 * @sa TELLSTICK_ERROR_BROKEN_PIPE 497 * @sa TELLSTICK_ERROR_COMMUNICATING_SERVICE 494 498 * @sa TELLSTICK_ERROR_UNKNOWN 495 499 */ … … 507 511 "Syntax error", 508 512 "Broken pipe" 513 "An error occured while communicating with the Telldus Service" 509 514 }; 510 515 std::string strReturn; -
telldus-core/client/telldus-core.h
rb84e8b r46d70a 118 118 #define TELLSTICK_ERROR_SYNTAX -8 119 119 #define TELLSTICK_ERROR_BROKEN_PIPE -9 120 #define TELLSTICK_ERROR_COMMUNICATING_SERVICE -10 120 121 #define TELLSTICK_ERROR_UNKNOWN -99 121 122
Note: See TracChangeset
for help on using the changeset viewer.
