1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*
- * Options.h
- *
- * Copyright (c) 2023 Thomas Buck (thomas@xythobuz.de)
- * Copyright (c) 2019 Paul Hutchinson
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
- #ifndef __OPTIONS_H_
- #define __OPTIONS_H_
-
- #ifndef DOCVER
- #define DOCVER "1.0.0.0"
- #endif
-
- // The max number of connections we can handle at the same time
- // (this will include buffers needed for each connection)
- #define WS_OPT_MAX_CONNECTIONS 2
-
- // The memory block to use to store the cookies, get args, and post args
- #define WS_OPT_ARG_MEMORY_SIZE 100
-
- // How many seconds to wait after a connection stops sending to us before we hang up
- #define WS_SECONDS_UNTIL_CONNECTION_RELEASE 5
-
- // The max number of bytes we can handle a single header line can be (including the GET line).
- // This is normally in the order of 16K - 128K (we default to a lot less)
- #define WS_LINE_BUFFER_SIZE 256
-
- #endif // __OPTIONS_H_
|