Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Merge pull request #27 from DraconPern/master
Browse files Browse the repository at this point in the history
fixed vs2012 compile
  • Loading branch information
eidheim committed Nov 28, 2015
2 parents aecb04c + e37980f commit 25cf952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server_http.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ namespace SimpleWeb {
class Config {
friend class ServerBase<socket_type>;
private:
Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads) {}
Config(unsigned short port, size_t num_threads): port(port), num_threads(num_threads), reuse_address(true) {}
unsigned short port;
size_t num_threads;
public:
///IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation.
///If empty, the address will be any address.
std::string address;
///Set to false to avoid binding the socket to an address that is already in use.
bool reuse_address=true;
bool reuse_address;
};
///Set before calling start().
Config config;
Expand Down

0 comments on commit 25cf952

Please sign in to comment.