lcore.git
10 years agomust free tdnswinasync in tdnsasync destructor
beware [Fri, 22 Nov 2013 01:15:05 +0000 (01:15 +0000)]
must free tdnswinasync in tdnsasync destructor

git-svn-id: file:///svnroot/lcore/trunk@126 b1de8a11-f9be-4011-bde0-cc7ace90066a

11 years agodnswin init must be called from lcoreinit to support NT service
beware [Thu, 4 Jul 2013 00:25:32 +0000 (00:25 +0000)]
dnswin init must be called from lcoreinit to support NT service

git-svn-id: file:///svnroot/lcore/trunk@125 b1de8a11-f9be-4011-bde0-cc7ace90066a

11 years agovarious work on readtxt2.pas
plugwash [Sat, 23 Feb 2013 02:25:59 +0000 (02:25 +0000)]
various work on readtxt2.pas
fix issue with files where a line with a unix line ending followed a line with a mac line ending
add support for applications to specify that only a single line ending type is a valid line ending
expand testreadtxt2.dpr

git-svn-id: file:///svnroot/lcore/trunk@124 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoreadtxt2 allow open files to still be read by others
beware [Fri, 12 Oct 2012 18:50:15 +0000 (18:50 +0000)]
readtxt2 allow open files to still be read by others

git-svn-id: file:///svnroot/lcore/trunk@123 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoadd cleartree to bsearchtree which clears a hashtable and frees all resources
beware [Fri, 12 Oct 2012 18:47:00 +0000 (18:47 +0000)]
add cleartree to bsearchtree which clears a hashtable and frees all resources

git-svn-id: file:///svnroot/lcore/trunk@122 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agothis version of unitwindowobject allows for creating a descendant with different...
beware [Sat, 18 Aug 2012 10:46:34 +0000 (10:46 +0000)]
this version of unitwindowobject allows for creating a descendant with different parameters

git-svn-id: file:///svnroot/lcore/trunk@121 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agomake readtxt2 work with pipes
plugwash [Fri, 17 Aug 2012 01:12:50 +0000 (01:12 +0000)]
make readtxt2 work with pipes

git-svn-id: file:///svnroot/lcore/trunk@120 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoadded ISO style date/time and UTC date/time strings, add comments to document output...
beware [Wed, 15 Aug 2012 14:23:43 +0000 (14:23 +0000)]
added ISO style date/time and UTC date/time strings, add comments to document output of time strings

git-svn-id: file:///svnroot/lcore/trunk@119 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agorename monotonic time to monotimefloat, added monotonic timefloat for linux and OS...
beware [Tue, 7 Aug 2012 02:29:51 +0000 (02:29 +0000)]
rename monotonic time to monotimefloat, added monotonic timefloat for linux and OS X, 64 bits unix ts, improve windows rate detection

git-svn-id: file:///svnroot/lcore/trunk@118 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agofix incorrectly detecting NT6 ~64.102 Hz mode as NT5 64 Hz mode, detect as special...
beware [Mon, 6 Aug 2012 05:02:27 +0000 (05:02 +0000)]
fix incorrectly detecting NT6 ~64.102 Hz mode as NT5 64 Hz mode, detect as special case

git-svn-id: file:///svnroot/lcore/trunk@117 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoremove increment guarantee, it causes problems if called faster than a million times...
beware [Sun, 5 Aug 2012 01:01:50 +0000 (01:01 +0000)]
remove increment guarantee, it causes problems if called faster than a million times per second

git-svn-id: file:///svnroot/lcore/trunk@116 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agodo SO_REUSEADDR also when listening in windows. wine needs it and it does not hurt...
beware [Fri, 25 May 2012 00:08:50 +0000 (00:08 +0000)]
do SO_REUSEADDR also when listening in windows. wine needs it and it does not hurt in windows.

git-svn-id: file:///svnroot/lcore/trunk@115 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agofor the last attempt of choosing a port, let the OS decide
beware [Sat, 25 Feb 2012 15:46:17 +0000 (15:46 +0000)]
for the last attempt of choosing a port, let the OS decide

git-svn-id: file:///svnroot/lcore/trunk@114 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agodnssync lookup retry to listen in case port is in use
beware [Fri, 24 Feb 2012 02:57:51 +0000 (02:57 +0000)]
dnssync lookup retry to listen in case port is in use

git-svn-id: file:///svnroot/lcore/trunk@113 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agotdnsstatearr declaration is needed outside syncdns code
beware [Tue, 13 Dec 2011 02:12:30 +0000 (02:12 +0000)]
tdnsstatearr declaration is needed outside syncdns code

git-svn-id: file:///svnroot/lcore/trunk@112 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoremoved use of global vars in dnssync, should be reentrant safe
beware [Mon, 12 Dec 2011 03:01:06 +0000 (03:01 +0000)]
removed use of global vars in dnssync, should be reentrant safe

git-svn-id: file:///svnroot/lcore/trunk@111 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoin dnssync, recreate sockets to fix problems when setting/changing custom nameserver
beware [Sat, 10 Dec 2011 16:36:12 +0000 (16:36 +0000)]
in dnssync, recreate sockets to fix problems when setting/changing custom nameserver

git-svn-id: file:///svnroot/lcore/trunk@110 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agoredone getlocalips fix more neatly
beware [Sat, 10 Dec 2011 13:29:58 +0000 (13:29 +0000)]
redone getlocalips fix more neatly

git-svn-id: file:///svnroot/lcore/trunk@109 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agofix dnscore based resolving failure on windows
beware [Fri, 9 Dec 2011 23:15:45 +0000 (23:15 +0000)]
fix dnscore based resolving failure on windows

git-svn-id: file:///svnroot/lcore/trunk@108 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agosome consolidation
beware [Fri, 25 Nov 2011 04:36:29 +0000 (04:36 +0000)]
some consolidation

git-svn-id: file:///svnroot/lcore/trunk@107 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agofixed missing semicolon if compiling without ipv6
beware [Wed, 23 Nov 2011 00:04:55 +0000 (00:04 +0000)]
fixed missing semicolon if compiling without ipv6

git-svn-id: file:///svnroot/lcore/trunk@106 b1de8a11-f9be-4011-bde0-cc7ace90066a

12 years agofix destroysourcestream always false bug
beware [Fri, 18 Nov 2011 23:20:51 +0000 (23:20 +0000)]
fix destroysourcestream always false bug

git-svn-id: file:///svnroot/lcore/trunk@105 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agouse rm -f in clean target
plugwash [Sun, 6 Nov 2011 22:45:21 +0000 (22:45 +0000)]
use rm -f in clean target

git-svn-id: file:///svnroot/lcore/trunk@104 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agofixed listen breaking on kernel compiled without ipv6
beware [Tue, 11 Oct 2011 08:08:48 +0000 (08:08 +0000)]
fixed listen breaking on kernel compiled without ipv6

git-svn-id: file:///svnroot/lcore/trunk@103 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoadd O_NONBLOCK in lserial.pas, apparently some serial ports need this to
plugwash [Fri, 19 Aug 2011 00:07:28 +0000 (00:07 +0000)]
add O_NONBLOCK in lserial.pas, apparently some serial ports need this to
open successfully and it's also consistent with how we open other stuff

git-svn-id: file:///svnroot/lcore/trunk@102 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agofix execl to work
beware [Tue, 28 Jun 2011 18:09:07 +0000 (18:09 +0000)]
fix execl to work

git-svn-id: file:///svnroot/lcore/trunk@101 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agofix line endings in lcorelocalips.pas
plugwash [Sun, 8 May 2011 00:01:47 +0000 (00:01 +0000)]
fix line endings in lcorelocalips.pas

git-svn-id: file:///svnroot/lcore/trunk@100 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoincreased maximum RR of a kind limit check
beware [Mon, 4 Apr 2011 14:58:41 +0000 (14:58 +0000)]
increased maximum RR of a kind limit check

git-svn-id: file:///svnroot/lcore/trunk@99 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agomade getlocalips work on mac OS X (BSD)
beware [Fri, 25 Feb 2011 05:56:35 +0000 (05:56 +0000)]
made getlocalips work on mac OS X (BSD)

git-svn-id: file:///svnroot/lcore/trunk@98 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoreorganization of system dns servers code
beware [Thu, 24 Feb 2011 06:24:10 +0000 (06:24 +0000)]
reorganization of system dns servers code

git-svn-id: file:///svnroot/lcore/trunk@97 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoadded lcorelocalips: code to get local v4 and v6 IPs in a central place
beware [Wed, 23 Feb 2011 06:46:34 +0000 (06:46 +0000)]
added lcorelocalips: code to get local v4 and v6 IPs in a central place

git-svn-id: file:///svnroot/lcore/trunk@96 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoadded ipv6 detection on windows for built-in resolver
beware [Tue, 22 Feb 2011 05:40:41 +0000 (05:40 +0000)]
added ipv6 detection on windows for built-in resolver

git-svn-id: file:///svnroot/lcore/trunk@95 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoeliminated a lot of hints and warnings
beware [Mon, 21 Feb 2011 21:40:05 +0000 (21:40 +0000)]
eliminated a lot of hints and warnings

git-svn-id: file:///svnroot/lcore/trunk@94 b1de8a11-f9be-4011-bde0-cc7ace90066a

13 years agoadd lserial.pas
plugwash [Sat, 18 Dec 2010 22:51:54 +0000 (22:51 +0000)]
add lserial.pas
add a few {$mode delphi}

git-svn-id: file:///svnroot/lcore/trunk@93 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoinit wcore stuff in lcoreinit, eliminating dependency on messageloop
beware [Sat, 13 Nov 2010 15:05:06 +0000 (15:05 +0000)]
init wcore stuff in lcoreinit, eliminating dependency on messageloop

git-svn-id: file:///svnroot/lcore/trunk@92 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoMsgRec consistency
beware [Sat, 13 Nov 2010 14:55:15 +0000 (14:55 +0000)]
MsgRec consistency

git-svn-id: file:///svnroot/lcore/trunk@91 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoreversing unnecessary changes to windowproc, and add translatemessage
beware [Sat, 13 Nov 2010 14:46:48 +0000 (14:46 +0000)]
reversing unnecessary changes to windowproc, and add translatemessage

git-svn-id: file:///svnroot/lcore/trunk@90 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoallow wcore to coexist with other windows
beware [Wed, 10 Nov 2010 23:20:43 +0000 (23:20 +0000)]
allow wcore to coexist with other windows

git-svn-id: file:///svnroot/lcore/trunk@89 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agounixtoole changed to take input as float
beware [Sat, 3 Apr 2010 22:25:51 +0000 (22:25 +0000)]
unixtoole changed to take input as float

git-svn-id: file:///svnroot/lcore/trunk@88 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoincreased connect timeout in case of more IPs to try to 5 seconds
beware [Mon, 22 Mar 2010 16:18:15 +0000 (16:18 +0000)]
increased connect timeout in case of more IPs to try to 5 seconds

git-svn-id: file:///svnroot/lcore/trunk@87 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoadded lsocket.onconnecttryip handler for apps that want to use this information
beware [Sat, 27 Feb 2010 21:16:25 +0000 (21:16 +0000)]
added lsocket.onconnecttryip handler for apps that want to use this information

git-svn-id: file:///svnroot/lcore/trunk@86 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoip6bintostr run length atleast 2 0 words
beware [Fri, 26 Feb 2010 03:43:23 +0000 (03:43 +0000)]
ip6bintostr run length atleast 2 0 words

git-svn-id: file:///svnroot/lcore/trunk@85 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agosimulate gettimeofday on windows
beware [Wed, 24 Feb 2010 04:01:22 +0000 (04:01 +0000)]
simulate gettimeofday on windows

git-svn-id: file:///svnroot/lcore/trunk@84 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agofd related central definition and small performance tweak in lcoreselect
beware [Sat, 20 Feb 2010 18:33:54 +0000 (18:33 +0000)]
fd related central definition and small performance tweak in lcoreselect

git-svn-id: file:///svnroot/lcore/trunk@83 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agofix signal hang
plugwash [Sat, 20 Feb 2010 13:48:27 +0000 (13:48 +0000)]
fix signal hang

git-svn-id: file:///svnroot/lcore/trunk@82 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agopgtypes needs to be used for new string definition
zipplet [Tue, 16 Feb 2010 23:18:51 +0000 (23:18 +0000)]
pgtypes needs to be used for new string definition

git-svn-id: file:///svnroot/lcore/trunk@81 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoCorrected binipstuff error with merge
zipplet [Tue, 16 Feb 2010 23:05:37 +0000 (23:05 +0000)]
Corrected binipstuff error with merge

git-svn-id: file:///svnroot/lcore/trunk@80 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoMerged with delphi 2010 branch
zipplet [Tue, 16 Feb 2010 22:51:30 +0000 (22:51 +0000)]
Merged with delphi 2010 branch

git-svn-id: file:///svnroot/lcore/trunk@79 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agomake a minor change per information from anders to allow build with current
plugwash [Tue, 16 Feb 2010 03:34:46 +0000 (03:34 +0000)]
make a minor change per information from anders to allow build with current
fpc on darwin, this may break builds with older compilers on darwin
(unfortunately I don't have such older versions handy to test so I can't
really set up ifdefs)

git-svn-id: file:///svnroot/lcore/trunk@78 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoadd some missing ifdefs
plugwash [Fri, 12 Feb 2010 22:26:21 +0000 (22:26 +0000)]
add some missing ifdefs

git-svn-id: file:///svnroot/lcore/trunk@76 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agofreebsd fixups
plugwash [Fri, 12 Feb 2010 22:16:05 +0000 (22:16 +0000)]
freebsd fixups

git-svn-id: file:///svnroot/lcore/trunk@75 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agofix build in various fpc versions on linux
plugwash [Fri, 12 Feb 2010 02:21:31 +0000 (02:21 +0000)]
fix build in various fpc versions on linux

git-svn-id: file:///svnroot/lcore/trunk@74 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agomake some os-x related fixes to lmessages
plugwash [Fri, 12 Feb 2010 00:51:00 +0000 (00:51 +0000)]
make some os-x related fixes to lmessages

force bindv6only to 0 to make things behave with debian squeeze+  (note: this
is likely to break on some operating systems but I suspect said operating
systems were broken already)

git-svn-id: file:///svnroot/lcore/trunk@73 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agogetsockname fixes. getXaddr was returning peer addr
beware [Wed, 10 Feb 2010 03:34:48 +0000 (03:34 +0000)]
getsockname fixes. getXaddr was returning peer addr

git-svn-id: file:///svnroot/lcore/trunk@71 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoremove executable property
plugwash [Fri, 5 Feb 2010 03:32:29 +0000 (03:32 +0000)]
remove executable property

git-svn-id: file:///svnroot/lcore/trunk@64 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agofix a broken line ending conversion attempt
plugwash [Fri, 5 Feb 2010 03:30:16 +0000 (03:30 +0000)]
fix a broken line ending conversion attempt

git-svn-id: file:///svnroot/lcore/trunk@63 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoset svn:ignore
plugwash [Thu, 4 Feb 2010 23:04:07 +0000 (23:04 +0000)]
set svn:ignore

git-svn-id: file:///svnroot/lcore/trunk@62 b1de8a11-f9be-4011-bde0-cc7ace90066a

14 years agoset line ending property on files to hopefully avoid line ending problems in future
plugwash [Thu, 4 Feb 2010 22:47:07 +0000 (22:47 +0000)]
set line ending property on files to hopefully avoid line ending problems in future

git-svn-id: file:///svnroot/lcore/trunk@61 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd support for fpc 2.2.4rc1
plugwash [Thu, 12 Nov 2009 20:47:41 +0000 (20:47 +0000)]
add support for fpc 2.2.4rc1

git-svn-id: file:///svnroot/lcore/trunk@60 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix line endings
plugwash [Sun, 1 Nov 2009 04:42:43 +0000 (04:42 +0000)]
fix line endings

git-svn-id: file:///svnroot/lcore/trunk@59 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix an error that prevented compilation with more recent fpc
plugwash [Sun, 1 Nov 2009 04:42:13 +0000 (04:42 +0000)]
fix an error that prevented compilation with more recent fpc
(that'll teach me not to assume that the fix I made for
build with 1.0.x is harmless)

git-svn-id: file:///svnroot/lcore/trunk@58 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agochange ltimevalstuff to a unit and move defintion of ttimeval on windows
plugwash [Sat, 31 Oct 2009 00:20:41 +0000 (00:20 +0000)]
change ltimevalstuff to a unit and move defintion of ttimeval on windows
there

git-svn-id: file:///svnroot/lcore/trunk@57 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agomake dnsasync better handle cleanup of a partially constructed instance
plugwash [Thu, 13 Aug 2009 18:50:30 +0000 (18:50 +0000)]
make dnsasync better handle cleanup of a partially constructed instance

git-svn-id: file:///svnroot/lcore/trunk@56 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoremoved redundant, and no longer valid, email address (another one)
beware [Wed, 24 Jun 2009 11:48:09 +0000 (11:48 +0000)]
removed redundant, and no longer valid, email address (another one)

git-svn-id: file:///svnroot/lcore/trunk@55 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoremoved redundant, and no longer valid, email address
beware [Wed, 24 Jun 2009 11:47:15 +0000 (11:47 +0000)]
removed redundant, and no longer valid, email address

git-svn-id: file:///svnroot/lcore/trunk@54 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd {$apptype console} to testreadtxt2.dpr to make delphi build it as a console app
plugwash [Thu, 18 Jun 2009 01:18:59 +0000 (01:18 +0000)]
add {$apptype console} to testreadtxt2.dpr to make delphi build it as a console app

git-svn-id: file:///svnroot/lcore/trunk@53 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agono dof file
beware [Thu, 18 Jun 2009 01:13:18 +0000 (01:13 +0000)]
no dof file

git-svn-id: file:///svnroot/lcore/trunk@52 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd text file read unit and test program to go with it
plugwash [Thu, 18 Jun 2009 00:48:22 +0000 (00:48 +0000)]
add text file read unit and test program to go with it

git-svn-id: file:///svnroot/lcore/trunk@51 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix some line ending issues
plugwash [Thu, 18 Jun 2009 00:46:24 +0000 (00:46 +0000)]
fix some line ending issues

git-svn-id: file:///svnroot/lcore/trunk@50 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix a typo in previous commit
plugwash [Mon, 15 Jun 2009 21:06:50 +0000 (21:06 +0000)]
fix a typo in previous commit

git-svn-id: file:///svnroot/lcore/trunk@49 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd some extra sanity checking to blinklist and fix a line ending in dnswin
plugwash [Mon, 15 Jun 2009 20:55:41 +0000 (20:55 +0000)]
add some extra sanity checking to blinklist and fix a line ending in dnswin

git-svn-id: file:///svnroot/lcore/trunk@48 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoremove an assignment that doesn't serve any usefull function and causes
plugwash [Mon, 13 Apr 2009 02:44:32 +0000 (02:44 +0000)]
remove an assignment that doesn't serve any usefull function and causes
build failure with 2.0.0 on amd64

git-svn-id: file:///svnroot/lcore/trunk@47 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix screwup in previous commit
plugwash [Mon, 13 Apr 2009 00:16:07 +0000 (00:16 +0000)]
fix screwup in previous commit

git-svn-id: file:///svnroot/lcore/trunk@46 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agomake dnswin use makeaddrinfov
plugwash [Mon, 13 Apr 2009 00:12:13 +0000 (00:12 +0000)]
make dnswin use makeaddrinfov

git-svn-id: file:///svnroot/lcore/trunk@45 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agooops really add it this time
plugwash [Tue, 17 Feb 2009 23:33:20 +0000 (23:33 +0000)]
oops really add it this time

git-svn-id: file:///svnroot/lcore/trunk@44 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd unitwindowobject.pas with bewares permission
plugwash [Tue, 17 Feb 2009 23:32:56 +0000 (23:32 +0000)]
add unitwindowobject.pas with bewares permission

git-svn-id: file:///svnroot/lcore/trunk@43 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix a bug in peekmessage
plugwash [Tue, 17 Feb 2009 00:51:40 +0000 (00:51 +0000)]
fix a bug in peekmessage

git-svn-id: file:///svnroot/lcore/trunk@42 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix some line ending issues and add a license header to wmessages.pas
plugwash [Sun, 15 Feb 2009 03:29:21 +0000 (03:29 +0000)]
fix some line ending issues and add a license header to wmessages.pas

git-svn-id: file:///svnroot/lcore/trunk@41 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd wmessages.pas (conviniance unit to make it easier to write code that works with...
plugwash [Sun, 15 Feb 2009 03:25:51 +0000 (03:25 +0000)]
add wmessages.pas (conviniance unit to make it easier to write code that works with both windows
messages and lmessages)

git-svn-id: file:///svnroot/lcore/trunk@40 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix a small error
plugwash [Sun, 15 Feb 2009 03:19:42 +0000 (03:19 +0000)]
fix a small error

git-svn-id: file:///svnroot/lcore/trunk@39 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix a bug in dispatchmessage
plugwash [Sun, 15 Feb 2009 03:11:49 +0000 (03:11 +0000)]
fix a bug in dispatchmessage

git-svn-id: file:///svnroot/lcore/trunk@38 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix a warning
beware [Fri, 6 Feb 2009 01:34:02 +0000 (01:34 +0000)]
fix a warning

git-svn-id: file:///svnroot/lcore/trunk@37 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years ago* rearchitect release method to use tasks (making it work on windows)
plugwash [Thu, 5 Feb 2009 21:52:57 +0000 (21:52 +0000)]
* rearchitect release method to use tasks (making it work on windows)
* drop the feature that the message loop on linux auto-exits when everything is destroyed (rarely if ever used)
* get rid of now redundant linked list of sockets

git-svn-id: file:///svnroot/lcore/trunk@36 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years ago* make lmessages scream and die on fpc older than 2.2.0 due to fpc bug
plugwash [Thu, 5 Feb 2009 18:38:37 +0000 (18:38 +0000)]
* make lmessages scream and die on fpc older than 2.2.0 due to fpc bug
* add makefile option to build test app without lmessages
* fixup lcore building on various older versions of freepascal

git-svn-id: file:///svnroot/lcore/trunk@35 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoICMP does work, removing comment
beware [Wed, 4 Feb 2009 00:01:05 +0000 (00:01 +0000)]
ICMP does work, removing comment

git-svn-id: file:///svnroot/lcore/trunk@34 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agochange blinklist.pas to zlib license with bewares permission
plugwash [Sat, 31 Jan 2009 01:00:51 +0000 (01:00 +0000)]
change blinklist.pas to zlib license with bewares permission

git-svn-id: file:///svnroot/lcore/trunk@33 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years ago* various fixups resulting from getting the test app working on a XP
plugwash [Sat, 31 Jan 2009 00:58:54 +0000 (00:58 +0000)]
* various fixups resulting from getting the test app working on a XP
  system without ipv6 enabled using delphi 3
 * make failures to create the socket go through the async error
   handling system so they interact well with the address list
   system (making use of an address list with mixed v4 and v6
   addresses work on a v4 only system)
 * fixup some unit dependencies
 * fixup some bits in the test app itself, make the test app able to
   complete on a system without ipv6 enabled, make the test app
   buildable on windows.
 * fixup handling of blank and unknown protocols (blank gives TCP,
   unknown gives an error)
 * disable word size check in lcorerng

* make some stuff that really shouldn't be pulic private, more should
  probablly be done later in this regard

git-svn-id: file:///svnroot/lcore/trunk@32 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd unitfork.pas to uses clause of test app so it's compilation gets checked
plugwash [Mon, 26 Jan 2009 01:30:31 +0000 (01:30 +0000)]
add unitfork.pas to uses clause of test app so it's compilation gets checked

git-svn-id: file:///svnroot/lcore/trunk@31 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix up some line ending issues in previous commit
plugwash [Mon, 26 Jan 2009 01:27:34 +0000 (01:27 +0000)]
fix up some line ending issues in previous commit

note, I forgot to mention in previous commit message that I added lmessages to
the uses clause of the test app to check it was buildable.

git-svn-id: file:///svnroot/lcore/trunk@30 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd unitfork.pas relicensed under zlib with bewares permission
plugwash [Mon, 26 Jan 2009 01:16:13 +0000 (01:16 +0000)]
add unitfork.pas relicensed under zlib with bewares permission

git-svn-id: file:///svnroot/lcore/trunk@29 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix line endings
plugwash [Fri, 23 Jan 2009 18:52:08 +0000 (18:52 +0000)]
fix line endings

git-svn-id: file:///svnroot/lcore/trunk@28 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agohopefully fix a connection death bug that was annoying zipplet
plugwash [Fri, 23 Jan 2009 18:23:37 +0000 (18:23 +0000)]
hopefully fix a connection death bug that was annoying zipplet

git-svn-id: file:///svnroot/lcore/trunk@27 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd license header to lmessages.pas
plugwash [Fri, 23 Jan 2009 01:40:05 +0000 (01:40 +0000)]
add license header to lmessages.pas

git-svn-id: file:///svnroot/lcore/trunk@26 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoFixed broadcast UDP sockets not working on windows
zipplet [Fri, 23 Jan 2009 00:36:13 +0000 (00:36 +0000)]
Fixed broadcast UDP sockets not working on windows

git-svn-id: file:///svnroot/lcore/trunk@25 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofixed bug of udp not working when using listen
beware [Mon, 19 Jan 2009 22:21:55 +0000 (22:21 +0000)]
fixed bug of udp not working when using listen

git-svn-id: file:///svnroot/lcore/trunk@24 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoon further thought, change the packet size some more
beware [Mon, 19 Jan 2009 12:03:32 +0000 (12:03 +0000)]
on further thought, change the packet size some more

git-svn-id: file:///svnroot/lcore/trunk@23 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agofix standard packet payload size for ipv6
beware [Mon, 19 Jan 2009 11:59:02 +0000 (11:59 +0000)]
fix standard packet payload size for ipv6

git-svn-id: file:///svnroot/lcore/trunk@22 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadd support for raw sockets
beware [Mon, 19 Jan 2009 11:48:03 +0000 (11:48 +0000)]
add support for raw sockets

git-svn-id: file:///svnroot/lcore/trunk@21 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years ago* fixed NT services not working. app must now call lcoreinit() at some point before...
beware [Fri, 26 Dec 2008 19:17:00 +0000 (19:17 +0000)]
* fixed NT services not working. app must now call lcoreinit() at some point before using sockets etc
* made dnssync and dnsasync secure with source port randomization and reply packet source IP/port verification
* created lcorerandom, a secure general purpose random number source, replacement of bircrandom
* added fastmd5.pas into the repository. it wasn't in it, but seemed to belong in it and lcorernd depends on it.
* added the ability to do "custom" (txt, mx, ns, ptr, etc) lookups in dnscore and dnsasync
* lsocket.receivefrom now converts a v6 mapped v4 IP to a real v4 IP for simplicity in the app
* removed "ipv6preferred" from dnswin, which was doing nothing

git-svn-id: file:///svnroot/lcore/trunk@20 b1de8a11-f9be-4011-bde0-cc7ace90066a

15 years agoadded unixutil to lmessages because of unixstuff.inc compile error
beware [Sat, 22 Nov 2008 17:25:18 +0000 (17:25 +0000)]
added unixutil to lmessages because of unixstuff.inc compile error

git-svn-id: file:///svnroot/lcore/trunk@19 b1de8a11-f9be-4011-bde0-cc7ace90066a