📄 changelog
字号:
callers. * tcp-socket.c: Added `svz_' prefix to each function. Changed callers. * util.h: Changed ?INT?? macros into SVZ_?INT?? macros. Changed all callers, too. * defines.h: Depending on the cpp flag __BUILD_SVZ_LIBRARY__ either `config.h' or `svzconfig.h' gets included here. * Makefile.am (AM_CFLAGS): Added a flag indicating if the library gets actually built or is used.2001-05-09 [ Ela ] <ela@lkcc.org> * portcfg.c (svz_portcfg_destroy_access, svz_portcfg_destroy_accepted): New functions. * server-socket.c (server_accept_socket): Checking access list and connect frequency. * server-core.c (sock_check_frequency, sock_check_access): New functions.2001-05-07 [ Ela ] <ela@lkcc.org> * server.c (svz_servertype_del): Undbind, remove and finalize each server instance of the server type. * binding.c (svz_server_unbind): New function. * portcfg.c (svz_portcfg_finalize): Fixed memory leak due to changes at `svz_portcfg_destroy'. * binding.c (svz_server_bindings): Text representaion depending on the types of port configurations. * portcfg.c (svz_portcfg_destroy): Also `svz_free()' the given port configuration itself. Changed all callers.2001-05-05 [ Ela ] <ela@lkcc.org> * portcfg.c (svz_portcfg_prepare): New function. (svz_portcfg_dup): Renamed from `svz_portcfg_copy'. * socket.c (sock_detect_proto): Using `detection_fill' value of the parents port configuration. (sock_idle_protect): Using `detection_wait' value of the parents port configuration. * util.h: Documented the INT*() macros. * alloc.h (svz_free_and_zero): Documented this macro. * server.h (DEFINE_CONFIG): New macro. Addionally documented the REGISTER_*() macros.2001-05-04 [ Ela ] <ela@lkcc.org> * server.c (svz_server_configure): Stating what kind of default value is missing using the ITEM_TEXT macro. (svz_config_clobber): New function. Used by `svz_server_configure()' in order to reverse changes on errors. * server.h (ITEM_TEXT): New macro returning text representation of a given ITEM_* constant. * server.c (svz_server_configure): Fully implemented the handling of default values for a server configuration using the `svz_config_*' functions. (svz_config_free): New function. Exported from `svz_server_free()' and now used by it. * portcfg.c (svz_portcfg_copy): Return NULL is the given port configuration is NULL either. * server.c (svz_config_intarray_create, svz_config_intarray_destroy, svz_config_intarray_dup, svz_config_strarray_create, svz_config_strarray_destroy, svz_config_strarray_dup, svz_config_hash_create, svz_config_hash_destroy, svz_config_hash_dup): New functions for server instance configuration.2001-05-02 [ Ela ] <ela@lkcc.org> * binding.c (svz_server_portcfg): Return an array of port configurations a given server is bound to. (svz_server_bindings): Return text representaion of the bindings of a server. * server-core.c (sock_portcfg): New function returning the parents port configuration of a given child socket. * server-socket.c (server_accept_socket, server_accept_pipe): Set a new childs parent structure. * ChangeLog: Created this file. * server-core.c (sock_setparent): New function. (sock_getparent): New function.2001-04-28 [ Ela ] <ela@lkcc.org> * udp-socket.c (udp_check_request): Go through a svz_array_t of servers now. * socket.c (sock_free): Freeing port configuration and server array if necessary. * server.h: Old `portcfg_t' completely eliminated. * server.c: Dropped `server_portcfg_equal()'. * server-socket.c: Replaced `server_ceate()' by `svz_server_create()'. * portcfg.h (svz_portcfg_ipaddr): New macro. Gets the ip address string of a given port configuration. * portcfg.c (svz_portcfg_set_ipaddr): New function. Sets a given ip address string in a port configuration. * icmp-socket.c (icmp_check_request): Array of servers is now a svz_array_t. * boot.c (svz_halt): Added call to `svz_portcfg_finalize()'. * binding.c: Finally deleted both the functions `server_bind()' and `server_start()'. These have been replaced by `svz_server_bind()'.2001-04-21 [ Ela ] <ela@lkcc.org> * server.c (svz_server_configure): Function for generic server configuration. Read <server.[ch]> for more information.2001-04-19 [ Ela ] <ela@lkcc.org> * hash.c (svz_hash_put): Return the old value if any. * server.c (svz_server_instantiate): New function. * vector.h (svz_vector_foreach): New iteration macro for svz_vector_t's. * binding.c (svz_server_find_portcfg): New function. (svz_server_bind): Fully implemented, using above function. * portcfg.c (svz_portcfg_mkaddr): Also put network family and port if necessary. (svz_portcfg_copy): New function. (svz_portcfg_expand): New function. * server.c (svz_server_get): New function. Hides svz_hash_t structure from library user.2001-04-18 [ Ela ] <ela@lkcc.org> * portcfg.h (PORTCFG_TYPE): Added some more string constants for port configurations.2001-04-11 [ Ela ] <ela@lkcc.org> * coserver/coserver.c: Cleaned up namespace for the coserver API.2001-04-05 [ Ela ] <ela@lkcc.org> * binding.c (svz_server_bind): Added this file into the CVS and moved some functions from serve.c here. * array.h (svz_array_foreach): Iteration macro for arrays defined. * portcfg.c: Added this file for port configuration maintainance.2001-04-01 [ Ela ] <ela@lkcc.org> * core.c (svz_sendfile): Using TransmitFile() in the Win32 port. * vector.c (svz_vector_contains): New function.2001-03-10 [ Ela ] <ela@lkcc.org> * array.c: Added new data structure. Implemented two version. One which is for debugging and another for distribution which is a fully inlined thingie.2001-03-08 [ Ela ] <ela@lkcc.org> * hash.h: Put the hash functions into the namespace `svz_hash_'. * core.c (svz_tcp_cork): Moved from `http-proto.c'. (svz_sendfile): Also moved from `http-proto.c'.2001-03-04 [ Ela ] <ela@lkcc.org> * core.c (svz_socket_connect): This function has been introduced in order to have the `connect()' call just once in the whole library. (svz_socket_create): Creates a socket via `socket()'. It is a wrapper for the Internet protocols UPD, TCP, ICMP and RAW. (svz_inet_ntoa): Moved both the `inet_ntoa()' `and inet_aton()' from `util.c' to `core.c' and renamed them.2001-03-01 [ Ela ] <ela@lkcc.org> * server-core.c (server_signal_handler): Fixed the problem with detaching and attaching the server on the console via ^Z and job control. * coserver/coserver.c (coserver_close_pipes): Close all pipes of existing coservers within a new coserver process. * core.c: Created this file.2001-02-28 [ Ela ] <ela@lkcc.org> * server-core.c (svz_fd_cloexec): This and the svz_fd_nonblock() function can be used to work on file descriptors.2001-02-18 [ Ela ] <ela@lkcc.org> * util.c (util_inet_aton): This function is a platform wrapper for internet address conversion.2001-02-06 [ Ela ] <ela@lkcc.org> * Makefile.am (libserveez_la_SOURCES): Added `vector.c' and `vector.h'. * interface.c: The list of available network interfaces `svz_interface' is now a `svz_vector'. * vector.c: New file implementing vector lists. * alist.h: Changed the name space from `alist' to `svz_alist'.2001-02-05 [ Ela ] <ela@lkcc.org> * dynload.c (dyn_load_library): Added support for GNU dld library and Beos's load_add_on() interface.2001-02-04 [ Ela ] <ela@lkcc.org> * dynload.c: Stuffed the dynamic loading interface into the serveez core library. (dyn_load_library): The dynamic loading interface for shared libraries saves all handles for better management. Thus it might be possible to load and unload server modules without restarting the main module.2001-02-02 [ Ela ] <ela@lkcc.org> * interface.c: Pulled the network interface detection into the core library.2001-02-01 [ Ela ] <ela@lkcc.org> * alloc.c (heap_caller): Defined this macro for calling it at the beginning of each function using __builtin_return_address() for debugging purposes. Using StackWalk() in MS Visual C++.2001-01-31 [ Ela ] <ela@lkcc.org> * server-core.c (server_loop_one): Took this piece of code out of `server_loop'. Thus you should be able to run the server loop yourself using the library only. * interface.c (list_local_interfaces): Fixed list of local network interfaces on FreeBSD version 3.2.2001-01-30 [ Ela ] <ela@lkcc.org> * icmp-socket.c: Cleaned up the name space and made many of the functions static.2001-01-29 [ Ela ] <ela@lkcc.org> * alist.c: Added a alot of necessary documentation and changed the array list indexes's data type from `unsigned' to `unsigned long'. Thus you can handle a bigger index range on 64 bit architectures.2001-01-24 [ Ela ] <ela@lkcc.org> * util.h: Renamed `last_errno' to `svz_errno', `verbosity' to `svz_verbosity' and `os_version' to `svz_os_version'. * Makefile.am (libserveez_la_SOURCES): Wrote some Makefile rules for creating a shared library called `libserveez.la'. We are using libtool here. * alloc.c: Created a namespace for the allocator functions malloc, free, etc. Gave a lot of functions and variables the `svz_' prefix. Moreover you can now overwrite the default allocator routine from libc (malloc, free, realloc). This is especially useful if you want to use memory from a shared memory arena. The function pointers are `svz_malloc_func', `svz_free_func' and `svz_realloc_func'.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -