Commit Graph

851 Commits

Author SHA1 Message Date
Andreas Rumpf
05421cf84b Merge pull request #1045 from barcharcraz/lowerBound
fixed doc comment
2014-03-28 23:13:41 +01:00
Charlie Barto
76dfa611ed fixed doc comment 2014-03-27 15:13:10 -04:00
Varriount
f40625f5c4 Merge pull request #1032 from barcharcraz/lowerBound
Added lowerBound function to the stdlib
2014-03-27 15:08:19 -04:00
Charlie Barto
491291ae24 added usage example for lower bound 2014-03-27 00:21:19 -04:00
Jason Livesay
cabc5c80d3 Calling randomize() again within 1 second will now provide a different seed 2014-03-26 18:54:34 -07:00
Dominik Picheta
783087fd57 Implemented async for httpclient. 2014-03-26 16:43:32 +00:00
Dominik Picheta
4ed1ac0078 Move asyncdispatch tests to asyncnet. 2014-03-26 10:31:16 +00:00
Charlie Barto
976fb18a8f made the default comparator for lowerBound unqualified, so the user can customize via two phase lookup 2014-03-23 18:30:54 -04:00
Charlie Barto
baa304f370 added lowerBound function to algorithm library 2014-03-23 18:28:05 -04:00
Dominik Picheta
d310b01db1 Moved the global dispatcher to asyncdispatch. 2014-03-23 18:24:11 +00:00
Dominik Picheta
10f205bb52 Fixes tasyncawait and the net module on Linux. 2014-03-23 11:39:24 +00:00
Dominik Picheta
192e11e7b7 Many renames. Created high level asyncnet module. 2014-03-22 22:33:53 +00:00
Dominik Picheta
2ce9f1c77f Copied most blocking socket operations to the net module. 2014-03-22 22:33:53 +00:00
Dominik Picheta
5bf45d9285 Clean up IP address code in net module. 2014-03-22 22:33:52 +00:00
Dominik Picheta
ca6b4bf0f9 Asyncio2 doc improvements. Changed recvLine's behaviour.
recvLine had an edge case where it would return a partial line if the
socket were to be disconnected in the middle of a line being read. The
behaviour now is that the data is simply lost as it likely will be
unparsable by the protocol anyway.
2014-03-22 22:33:51 +00:00
Araq
5aac789e0e Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-22 02:52:33 +01:00
Araq
fb5ece805f added mapMem/unmapMem to memfiles; untested 2014-03-22 02:51:03 +01:00
Dominik Picheta
de64e8ec22 PFuture[void] now works.
Return types can also be completely ommitted. PFuture[void] will then be
implicitly deduced.
2014-03-15 00:11:01 +00:00
Dominik Picheta
0519afba1d Merge pull request #972 from Matthias247/ipaddress
Added a IpAddress structure to the net module
2014-03-14 21:27:00 +00:00
Matthias Einwag
95e4ab99e7 Make the IP address exceptions more detailed 2014-03-14 22:17:44 +01:00
Dominik Picheta
afb7dbf81a Fixes compilation of asyncio2 on Windows.
Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.
2014-03-14 20:18:51 +00:00
Dominik Picheta
1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Araq
3e056afb1c fixes #993 2014-03-13 22:29:48 +01:00
Araq
1c35fb3c89 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-13 02:52:51 +01:00
Araq
2fc84325c7 should fix the nkExprColonExpr bug in the vm 2014-03-13 02:52:40 +01:00
Dominik Picheta
d2f130c3fc Fix compilation on linux. 2014-03-12 23:19:40 +00:00
Dominik Picheta
d97a397139 Fixed tasyncawait on Windows.
Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
2014-03-12 20:42:36 +00:00
Dominik Picheta
15919b7c98 EOS exception now contains the error code. 2014-03-11 23:06:22 +00:00
Dominik Picheta
2ce07042fd tasyncawait now works on Linux.
Reworked detection of a file descriptor being closed with epoll (in the
case of sockets it is when the remote host disconnects). Ensured that
events are only updated when they change.
2014-03-11 21:53:35 +00:00
Araq
3270676e77 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-10 22:23:38 +01:00
Araq
121553d1a6 osproc compiles again for haiku 2014-03-10 17:32:50 +01:00
Dominik Picheta
a097526956 Fixes to asyncio2 on Linux. 2014-03-09 13:49:38 +00:00
Matthias Einwag
7b055388b7 raise exceptions through newException 2014-03-09 11:47:22 +01:00
Matthias Einwag
74d51a7700 $ for TIpAddress now prints in the recommended format 2014-03-04 23:02:23 +01:00
Matthias Einwag
0f88ee7d0c Use character ranges from strutils. 2014-03-04 22:41:53 +01:00
Matthias Einwag
e328d015f1 Added a IpAddress structure to the net module 2014-03-04 00:49:08 +01:00
Araq
74549c327e added a warning for htmlgen 2014-03-03 08:17:51 +01:00
Araq
dfeb0e8432 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-02 23:46:32 +01:00
Araq
d4263b1012 bugfix: walkFiles on windows shouldn't yield directories 2014-03-02 11:15:31 +01:00
Dominik Picheta
0d263f155b Fixes sockets2 on Windows. 2014-02-28 19:31:12 +00:00
Michał Zieliński
f4371bfef8 osproc: add warning about using waitForExit without poParentStreams 2014-02-27 19:52:04 +01:00
Michał Zieliński
7314f11adc osproc: MacOSX fix - if -> when 2014-02-24 17:45:45 +01:00
Michał Zieliński
30a3098095 osproc: MacOSX workaround for lack of execvpe 2014-02-24 17:01:00 +01:00
Andreas Rumpf
00b69192f2 Merge pull request #953 from zielmicha/vfork
osproc: increase stack size from 8k to 64k and disable useClone default
2014-02-23 21:43:00 +01:00
Michał Zieliński
6712aa6e38 osproc: use fork by default on Linux, clone if requested by useClone flag 2014-02-23 21:06:40 +01:00
Michał Zieliński
95eb2b88e6 osproc: increase stack size from 8k to 64k 2014-02-23 21:01:03 +01:00
Andreas Rumpf
46967f921a Merge pull request #917 from zielmicha/vfork
osproc: Raise exception if execv fails in child process
2014-02-23 19:49:19 +01:00
Dominik Picheta
3b5825e9bc Implemented selector support for asyncio2. 2014-02-22 17:22:19 +00:00
Fabio Cevasco
067c3816ba Rewrote the changes to findAll using if/else 2014-02-22 10:07:37 +01:00
Fabio Cevasco
6621454dec pegs.findAll iterator fix
Modified the findAll iterator so that it continues looking for a match within the input string (bug?).
2014-02-21 14:14:43 +01:00