MCPcopy Create free account
hub / github.com/Helidium/Mitol / Server

Method Server

src/Server.cpp:199–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199MNS::Server::Server() {
200 MNS::Server::response_msgs[200] = "200 OK\r\n";
201 MNS::Server::response_msgs[301] = "301 Redirect\r\n";
202 MNS::Server::response_msgs[404] = "404 Not Found\r\n";
203 MNS::Server::response_msgs[500] = "500 Internal Server Error\r\n";
204
205 loop = uv_default_loop();
206
207 this->onHttpCancelHandler = NULL;
208 this->onHttpConnectionHandler = NULL;
209 this->onHttpRequestHandler = NULL;
210 this->listeningSocket = 0;
211 this->timer_h = NULL;
212}
213
214void MNS::Server::listen(int port) {
215 listeningSocket = Socket::createListening(port);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected