RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Attributes | Friends | List of all members
SimpleWeb::ServerBase< socket_type >::Config Class Reference

Public Attributes

unsigned short port
 Port number to use. Defaults to 80 for HTTP and 443 for HTTPS.
 
std::size_t thread_pool_size = 1
 
long timeout_request = 5
 Timeout on request handling. Defaults to 5 seconds.
 
long timeout_content = 300
 Timeout on content handling. Defaults to 300 seconds.
 
std::size_t max_request_streambuf_size = std::numeric_limits<std::size_t>::max()
 
std::string address
 
bool reuse_address = true
 Set to false to avoid binding the socket to an address that is already in use. Defaults to true.
 

Friends

class ServerBase< socket_type >
 

Member Data Documentation

template<class socket_type>
std::string SimpleWeb::ServerBase< socket_type >::Config::address

IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation. If empty, the address will be any address.

template<class socket_type>
std::size_t SimpleWeb::ServerBase< socket_type >::Config::max_request_streambuf_size = std::numeric_limits<std::size_t>::max()

Maximum size of request stream buffer. Defaults to architecture maximum. Reaching this limit will result in a message_size error code.

template<class socket_type>
std::size_t SimpleWeb::ServerBase< socket_type >::Config::thread_pool_size = 1

If io_service is not set, number of threads that the server will use when start() is called. Defaults to 1 thread.


The documentation for this class was generated from the following file: