Skip to content
Snippets Groups Projects
Select Git revision
  • 355d1ae4a31f9d2fdf6837e9dae3fc8fc2deef03
  • devel default protected
  • filmat/devel-18434
  • filmat/devel-17717
  • mapc_events
  • release-7.5 protected
  • fix-steer-pending
  • filmat/devel-17856
  • opclass
  • filmat/devel-18053
  • filmat/devel-15992
  • print-cflags
  • 7.5.0
  • topology
  • acx/son
  • default-enable-ts-if-missing
  • dump_topology
  • acx/cntlr-ext
  • filmat/devel-15831
  • release-7.3 protected
  • custom-band-steer
21 results

config.h

Blame
  • context.c 41.82 KiB
    /*
     * libwebsockets - small server side websockets and web server implementation
     *
     * Copyright (C) 2010-2017 Andy Green <andy@warmcat.com>
     *
     *  This library is free software; you can redistribute it and/or
     *  modify it under the terms of the GNU Lesser General Public
     *  License as published by the Free Software Foundation:
     *  version 2.1 of the License.
     *
     *  This library is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     *  Lesser General Public License for more details.
     *
     *  You should have received a copy of the GNU Lesser General Public
     *  License along with this library; if not, write to the Free Software
     *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
     *  MA  02110-1301  USA
     */
    
    #include "private-libwebsockets.h"
    
    #ifndef LWS_BUILD_HASH
    #define LWS_BUILD_HASH "unknown-build-hash"
    #endif
    
    static const char *library_version = LWS_LIBRARY_VERSION " " LWS_BUILD_HASH;
    
    /**
     * lws_get_library_version: get version and git hash library built from
     *
     *	returns a const char * to a string like "1.1 178d78c"
     *	representing the library version followed by the git head hash it
     *	was built from
     */
    LWS_VISIBLE const char *
    lws_get_library_version(void)
    {
    	return library_version;
    }
    
    static const char * const mount_protocols[] = {
    	"http://",
    	"https://",
    	"file://",
    	"cgi://",
    	">http://",
    	">https://",
    	"callback://"
    };
    
    #if defined(LWS_WITH_HTTP2)
    /*
     * These are the standardized defaults.
     * Override what actually goes in the vhost settings in platform or user code.
     * Leave these alone because they are used to determine "what is different
     * from the protocol defaults".
     */
    const struct http2_settings lws_h2_defaults = { {
    	1,
    	/* H2SET_HEADER_TABLE_SIZE */			4096,
    	/* *** This controls how many entries in the dynamic table ***
    	 * Allows the sender to inform the remote endpoint of the maximum
    	 * size of the header compression table used to decode header
    	 * blocks, in octets.  The encoder can select any size equal to or
    	 * less than this value by using signaling specific to the header
    	 * compression format inside a header block (see [COMPRESSION]).
    	 * The initial value is 4,096 octets.
    	 */