Fix inclusion of CivetServer.h. #1188

This commit is contained in:
Penn, John M 047828115 2021-10-19 13:41:42 -05:00
parent 02bdd8f4a4
commit 8657acb3dc
7 changed files with 8 additions and 8 deletions

View File

@ -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>

View File

@ -37,7 +37,7 @@ PURPOSE: (Represent Websocket connection.)
#include <string>
#ifndef SWIG
#include "civet/CivetServer.h"
#include "CivetServer.h"
#endif
class WebSocketSession {

View File

@ -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);
}
}

View File

@ -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"

View File

@ -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);

View File

@ -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"

View File

@ -10,7 +10,7 @@ LIBRARY DEPENDENCIES:
#include "trick/message_type.h"
#ifndef SWIG
#include "civet/CivetServer.h"
#include "CivetServer.h"
#endif
#include <sstream>