X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/d8d568ba2b45905cbe2c8e1956b6444d5b6560f4..64005e4a670ae074eea1980c5eca131748884ec0:/lcoreconfig.inc?ds=sidebyside diff --git a/lcoreconfig.inc b/lcoreconfig.inc index 27b6e82..39d1f27 100644 --- a/lcoreconfig.inc +++ b/lcoreconfig.inc @@ -12,6 +12,7 @@ to disable, undefine it here, or define "noipv6" in the app} {$define ipv6} {$endif} +{-------------------------------------------------------------------------------------} {there are 2 ways to use DNS in lcore: dnscore, which an entire built in DNS client, and getaddrinfo. dnscore is always included on *nix to avoid libc dependency problems, but getaddrinfo is used on windows. when getaddrinfo is used, there is no reason to include dnscore, and it increases the exe size, @@ -19,11 +20,26 @@ unless you want to use custom nameserver addresses. enable this setting to alway {-$define syncdnscore} +{-------------------------------------------------------------------------------------} +{lcore contains a built in general purpose secure random number generator, which is used elsewhere in lcore, for +example by the DNS resolver. the used random function can be hooked to point to one's own RNG as desired. +it is then also possible to not include the built in RNG in the exe, which reduces code size} + +{-$define nolcorernd} + +{-------------------------------------------------------------------------------------} {on windows up to XP, listening on ipv6 will not listen on ipv4, while on other platforms it does, so a single listener cant get all connections for a port number, only those for one address family. also it means a portable app would gave to deal with inconsistent behavior. enable this option to simulate the behavior of listening on both v4 and v6} -{$ifdef win32}{$ifdef ipv6} +{$ifdef mswindows}{$ifdef ipv6} {$define secondlistener} {$endif}{$endif} + +{-------------------------------------------------------------------------------------} +{the threaded windows async dns is currently (2014-03-28) broken. it causes crashes +after running for a period of time. -anders} +{$ifdef mswindows} + {-$define winasyncdns} +{$endif}