#include "WuT/WebSocket/GlitchWebSocket.h"
#include "WuT/WebSocket/WutSocket.h"
#include <Nice/Util/Exception.h>
#include <Nice/Log.h>
#include <cassert>
#include <cstdio>
#include <exception>
#include <sstream>
#include <string>
|
| Basda |
| These are contants that are used by the services internally.
|
|
◆ GLITCH_WEB_SOCKET_FORWARD_EPILOG
#define GLITCH_WEB_SOCKET_FORWARD_EPILOG |
( |
| ) |
|
Value:communicationFailed= false; \
numOccurredFailures++; \
if (numOccurredFailures > N_MAX_TOLERABLE_FAILURES) { \
D_LOG("Number of communication glitches" \
" has exceeded limit: " << \
numOccurredFailures << " of limit " << \
N_MAX_TOLERABLE_FAILURES); \
throw; \
} \
else { \
W_LOG("Ignoring communication glitch#" << \
numOccurredFailures << \
" of " << N_MAX_TOLERABLE_FAILURES << \
" tolerable glitches: " << e.
what()); \
} \
} \
} while (communicationFailed);
boost::shared_ptr< WebSocket > WebSocketPtr
Definition: WebSocket.h:15
exception class for the sockets
Definition: WutSocket.h:40
virtual const char * what() const
Definition: WutSocket.h:54
◆ GLITCH_WEB_SOCKET_FORWARD_PROLOG
#define GLITCH_WEB_SOCKET_FORWARD_PROLOG |
( |
| ) |
|
Value:bool communicationFailed= true; \
unsigned numOccurredFailures= 0; \
do { \
try {
◆ LOG_NAME