| 197 | } |
| 198 | |
| 199 | MNS::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 | |
| 214 | void MNS::Server::listen(int port) { |
| 215 | listeningSocket = Socket::createListening(port); |
nothing calls this directly
no outgoing calls
no test coverage detected