Multiple definitions
This commit is contained in:
+2
-2
@@ -29,10 +29,10 @@
|
|||||||
namespace uWS {
|
namespace uWS {
|
||||||
|
|
||||||
/* Some pre-defined status constants to use with writeStatus */
|
/* Some pre-defined status constants to use with writeStatus */
|
||||||
const char *HTTP_200_OK = "200 OK";
|
static const char *HTTP_200_OK = "200 OK";
|
||||||
|
|
||||||
/* The general timeout for HTTP sockets */
|
/* The general timeout for HTTP sockets */
|
||||||
const int HTTP_TIMEOUT_S = 10;
|
static const int HTTP_TIMEOUT_S = 10;
|
||||||
|
|
||||||
template <bool SSL>
|
template <bool SSL>
|
||||||
struct HttpResponse : public AsyncSocket<SSL> {
|
struct HttpResponse : public AsyncSocket<SSL> {
|
||||||
|
|||||||
+1
-1
@@ -122,7 +122,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Can be called from any thread to run the thread local loop */
|
/* Can be called from any thread to run the thread local loop */
|
||||||
void run() {
|
inline void run() {
|
||||||
Loop::defaultLoop()->run();
|
Loop::defaultLoop()->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -24,7 +24,7 @@
|
|||||||
namespace uWS {
|
namespace uWS {
|
||||||
namespace utils {
|
namespace utils {
|
||||||
|
|
||||||
int u32toaHex(uint32_t value, char *dst) {
|
inline int u32toaHex(uint32_t value, char *dst) {
|
||||||
char palette[] = "0123456789abcdef";
|
char palette[] = "0123456789abcdef";
|
||||||
char temp[10];
|
char temp[10];
|
||||||
char *p = temp;
|
char *p = temp;
|
||||||
@@ -42,7 +42,7 @@ int u32toaHex(uint32_t value, char *dst) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int u32toa(uint32_t value, char *dst) {
|
inline int u32toa(uint32_t value, char *dst) {
|
||||||
char temp[10];
|
char temp[10];
|
||||||
char *p = temp;
|
char *p = temp;
|
||||||
do {
|
do {
|
||||||
|
|||||||
Reference in New Issue
Block a user