mirror of
https://github.com/nasa/trick.git
synced 2025-01-17 18:30:09 +00:00
Fix inclusion of CivetServer.h. #1188
This commit is contained in:
parent
02bdd8f4a4
commit
8657acb3dc
@ -43,7 +43,7 @@ void handle_HTTP_GET_hello(struct mg_connection *nc, void *hm);
|
||||
**```handle_HTTP_GET_hello.c```**
|
||||
|
||||
```c
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#include "civet/civetweb.h"
|
||||
#include <string.h>
|
||||
|
||||
|
@ -37,7 +37,7 @@ PURPOSE: (Represent Websocket connection.)
|
||||
|
||||
#include <string>
|
||||
#ifndef SWIG
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#endif
|
||||
|
||||
class WebSocketSession {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
|
||||
void handle_HTTP_GET_hello(struct mg_connection *nc, struct http_message *hm) {
|
||||
mg_printf(nc, "%s", "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n");
|
||||
@ -6,4 +6,4 @@ void handle_HTTP_GET_hello(struct mg_connection *nc, struct http_message *hm) {
|
||||
"{ \"greeting\" : \"Hello Trick Sim Developer!\" }";
|
||||
mg_printf_http_chunk(nc, "%s", json_text);
|
||||
mg_send_http_chunk(nc, "", 0);
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ PURPOSE: (Represent the state of a variable server websocket connection.)
|
||||
#include <string>
|
||||
|
||||
#ifndef SWIG
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#endif
|
||||
|
||||
#include "trick/WebSocketSession.hh"
|
||||
|
@ -8,7 +8,7 @@ LIBRARY DEPENDENCIES:
|
||||
#include <cstddef>
|
||||
|
||||
#ifndef SWIG
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#endif
|
||||
|
||||
void http_send(struct mg_connection *conn, const char* msg, int len, int chunk_size);
|
||||
|
@ -21,7 +21,7 @@ PURPOSE: (Represent the state and initial conditions for my server)
|
||||
#include "trick/WebSocketSession.hh"
|
||||
|
||||
#ifndef SWIG
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#endif
|
||||
|
||||
#include "../include/http_GET_handlers.hh"
|
||||
|
@ -10,7 +10,7 @@ LIBRARY DEPENDENCIES:
|
||||
#include "trick/message_type.h"
|
||||
|
||||
#ifndef SWIG
|
||||
#include "civet/CivetServer.h"
|
||||
#include "CivetServer.h"
|
||||
#endif
|
||||
|
||||
#include <sstream>
|
||||
|
Loading…
Reference in New Issue
Block a user