| MistServer
    2.5.3-Pro-19-gf5e75b1 ( Generic_64)
    | 
| Functions | |
| bool | doTrigger (const std::string type) | 
| handles triggers for a specific trigger event type, without a payload, server-wide  More... | |
| bool | doTrigger (const std::string type, const std::string &payload) | 
| handles triggers for a specific trigger event type, with a payload, server-wide  More... | |
| bool | doTrigger (const std::string type, const std::string &payload, const std::string &streamName) | 
| handles triggers for a specific trigger event type, with a payload, for a specified stream, and/or server-wide  More... | |
| bool | doTrigger (const std::string type, const std::string &payload, const std::string &streamName, bool dryRun, std::string &response) | 
| std::string | handleTrigger (const std::string &trigger, const std::string &value, const std::string &payload, int sync) | 
| Handles a trigger by sending a payload to a destination.  More... | |
| bool | shouldTrigger (const std::string type) | 
| Checks if one or more triggers are defined that should be handled for all streams (for a trigger event type)  More... | |
| bool | shouldTrigger (const std::string type, const std::string &streamName) | 
| returns true if a trigger of the specified type should be handled for a specified stream (, or entire server)  More... | |
| Variables | |
| static std::string | empty | 
| bool Triggers::doTrigger | ( | const std::string | type | ) | 
handles triggers for a specific trigger event type, without a payload, server-wide
| type | Trigger event type. | 
| bool Triggers::doTrigger | ( | const std::string | type, | 
| const std::string & | payload | ||
| ) | 
handles triggers for a specific trigger event type, with a payload, server-wide
| type | Trigger event type. | 
| payload | Trigger type-specific data | 
| bool Triggers::doTrigger | ( | const std::string | type, | 
| const std::string & | payload, | ||
| const std::string & | streamName | ||
| ) | 
handles triggers for a specific trigger event type, with a payload, for a specified stream, and/or server-wide
| type | Trigger event type. | 
| payload | Trigger type-specific data | 
| streamName | The name of a stream. | 
| bool Triggers::doTrigger | ( | const std::string | type, | 
| const std::string & | payload, | ||
| const std::string & | streamName, | ||
| bool | dryRun, | ||
| std::string & | response | ||
| ) | 
| type | Trigger event type | 
| payload | Trigger type-specific data | 
| streamName | Name of a stream to check for stream-specific triggers | 
| dryRun | determines the mode of operation for this function | 
| response | Returns the last received response by reference | 
| std::string Triggers::handleTrigger | ( | const std::string & | trigger, | 
| const std::string & | value, | ||
| const std::string & | payload, | ||
| int | sync | ||
| ) | 
Handles a trigger by sending a payload to a destination.
| trigger | Trigger event type. | 
| value | Destination. This can be an (HTTP)URL, or an absolute path to a binary/script | 
| payload | This data will be sent to the destionation URL/program | 
| sync | If true, handler is executed blocking and uses the response data. | 
| bool Triggers::shouldTrigger | ( | const std::string | type | ) | 
Checks if one or more triggers are defined that should be handled for all streams (for a trigger event type)
| type | Trigger event type. | 
| bool Triggers::shouldTrigger | ( | const std::string | type, | 
| const std::string & | streamName | ||
| ) | 
returns true if a trigger of the specified type should be handled for a specified stream (, or entire server)
| type | Trigger event type. | 
| streamName | the stream to be handled | 
| 
 | static | 
 1.8.11
 1.8.11