mirror of
https://github.com/nasa/trick.git
synced 2025-06-16 06:08:17 +00:00
Fix inclusion of CivetServer.h. #1188
This commit is contained in:
@ -43,7 +43,7 @@ void handle_HTTP_GET_hello(struct mg_connection *nc, void *hm);
|
|||||||
**```handle_HTTP_GET_hello.c```**
|
**```handle_HTTP_GET_hello.c```**
|
||||||
|
|
||||||
```c
|
```c
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#include "civet/civetweb.h"
|
#include "civet/civetweb.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ PURPOSE: (Represent Websocket connection.)
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class WebSocketSession {
|
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) {
|
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");
|
mg_printf(nc, "%s", "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\n\r\n");
|
||||||
|
@ -9,7 +9,7 @@ PURPOSE: (Represent the state of a variable server websocket connection.)
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "trick/WebSocketSession.hh"
|
#include "trick/WebSocketSession.hh"
|
||||||
|
@ -8,7 +8,7 @@ LIBRARY DEPENDENCIES:
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void http_send(struct mg_connection *conn, const char* msg, int len, int chunk_size);
|
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"
|
#include "trick/WebSocketSession.hh"
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../include/http_GET_handlers.hh"
|
#include "../include/http_GET_handlers.hh"
|
||||||
|
@ -10,7 +10,7 @@ LIBRARY DEPENDENCIES:
|
|||||||
#include "trick/message_type.h"
|
#include "trick/message_type.h"
|
||||||
|
|
||||||
#ifndef SWIG
|
#ifndef SWIG
|
||||||
#include "civet/CivetServer.h"
|
#include "CivetServer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
Reference in New Issue
Block a user