Skip to content

Commit 84ecf8e

Browse files
committed
Cleanup.
1 parent 3fd6a96 commit 84ecf8e

File tree

3 files changed

+38
-42
lines changed

3 files changed

+38
-42
lines changed

Build/README.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
###Change log
5353

5454
----------------------------------------------------
55-
05/03/2023: version 2.5.15
55+
05/09/2023: version 2.5.15
5656

5757
- restore the parameters between successive compilations
58-
- integrates Faust compiler version 2.59.4
58+
- integrates Faust compiler version 2.59.5
5959
- based on LLVM 15.0.7 on and OS X and 10.0.0 on Windows
6060
- latest version of the Faust libraries
6161

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Copyright GRAME (c) 2014-2023
1111

1212
- restore the parameters between successive compilations
1313
- integrates Faust compiler version 2.59.5
14-
- based on LLVM 15.0.7 on and OS X and 10.0.0 on Windows
14+
- based on LLVM 15.0.7 on and OS X and Windows
1515
- latest version of the Faust libraries
1616

1717
----------------------------------------------------

src/Network/FLServerHttp.h

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,21 @@
4141

4242
#include <QObject>
4343

44-
#undef min
45-
#undef std::max
46-
47-
4844
#define POSTBUFFERSIZE 512
4945

5046
#define GET 0
5147
#define POST 1
5248

5349
struct connection_info {
5450

55-
int connectiontype; // GET or POST
56-
struct MHD_PostProcessor *postprocessor; // the POST processor used internally by microhttpd
57-
int answercode; // used internally by microhttpd to see where things went wrong or right
51+
int connectiontype; // GET or POST
52+
struct MHD_PostProcessor *postprocessor; // the POST processor used internally by microhttpd
53+
int answercode; // used internally by microhttpd to see where things went wrong or right
5854

5955
std::string data;
6056
std::string compilationOptions;
61-
std::string winUrl; // To be able to replace faust content in the right FLWindow
62-
std::string answerstring; // the answer sent to the user after upload
57+
std::string winUrl; // To be able to replace faust content in the right FLWindow
58+
std::string answerstring; // the answer sent to the user after upload
6359

6460
};
6561

@@ -70,41 +66,41 @@ class FLServerHttp : public QObject
7066

7167
Q_OBJECT
7268

73-
int fMaxCients;
74-
std::string fError; // Not important right now
75-
std::string fUrl; // Url of wrapped http page
69+
int fMaxCients;
70+
std::string fError; // Not important right now
71+
std::string fUrl; // Url of wrapped http page
7672

77-
bool fPosted; // Post request completed
78-
bool fCompiled; // Compilation sucess
73+
bool fPosted; // Post request completed
74+
bool fCompiled; // Compilation sucess
7975

80-
std::string fServerAddress;
81-
std::string fJson;
82-
std::string fHtml;
83-
std::string fHome;
76+
std::string fServerAddress;
77+
std::string fJson;
78+
std::string fHtml;
79+
std::string fHome;
8480

85-
std::map<int, std::string> fDeclaredNames;
81+
std::map<int, std::string> fDeclaredNames;
8682

87-
static FLServerHttp* _serverInstance;
83+
static FLServerHttp* _serverInstance;
8884

89-
static int fUploadingClients;
85+
static int fUploadingClients;
9086

91-
struct MHD_Daemon* fDaemon;
87+
struct MHD_Daemon* fDaemon;
9288

93-
int handleGet(MHD_Connection* connection, const char* url);
94-
int handlePost(MHD_Connection* connection, const char* url, void* info);
89+
int handleGet(MHD_Connection* connection, const char* url);
90+
int handlePost(MHD_Connection* connection, const char* url, void* info);
9591

96-
void updateAvailableInterfaces();
97-
int getMaxClients();
92+
void updateAvailableInterfaces();
93+
int getMaxClients();
9894

99-
int sendPage(struct MHD_Connection *connection, const char* page, int length, int status_code, const char* type = 0);
95+
int sendPage(struct MHD_Connection *connection, const char* page, int length, int status_code, const char* type = 0);
10096

101-
static int answerToConnection(void* cls, struct MHD_Connection* connection,
102-
const char* url, const char* method,
103-
const char* version, const char* upload_data,
104-
size_t* upload_data_size, void** con_cls);
97+
static int answerToConnection(void* cls, struct MHD_Connection* connection,
98+
const char* url, const char* method,
99+
const char* version, const char* upload_data,
100+
size_t* upload_data_size, void** con_cls);
105101

106102

107-
int redirectJsonRequest(struct MHD_Connection *connection, std::string portNumber);
103+
int redirectJsonRequest(struct MHD_Connection *connection, std::string portNumber);
108104

109105
static void requestCompleted(void* cls, MHD_Connection* connection, void** con_cls, MHD_RequestTerminationCode toe);
110106

@@ -120,19 +116,19 @@ class FLServerHttp : public QObject
120116
FLServerHttp(const std::string& home);
121117
virtual ~FLServerHttp();
122118

123-
bool start();
124-
void stop();
119+
bool start();
120+
void stop();
125121

126-
void declareHttpInterface(int port, const std::string& name);
127-
void removeHttpInterface(int port);
122+
void declareHttpInterface(int port, const std::string& name);
123+
void removeHttpInterface(int port);
128124

129-
void compileSuccessfull(const std::string& url);
130-
void compileFailed(const std::string& error);
125+
void compileSuccessfull(const std::string& url);
126+
void compileFailed(const std::string& error);
131127

132128
static void createInstance(const std::string& homeFolder);
133129
static void deleteInstance();
134130

135-
static FLServerHttp* _Instance();
131+
static FLServerHttp* _Instance();
136132

137133
signals:
138134

0 commit comments

Comments
 (0)