Commit graph

64 commits

Author SHA1 Message Date
Dominik Picheta
bacb20a379 Deprecated OSError, and modified it to require an explicit OS error code.
The deprecated functions include the OSError and OSErrorMsg, the name did not change however the signature of the new functions did. They now require a TOSErrorCode value be passed to them. This value can be retrieved using OSLastError. The reason this was done is because on Windows any win api call can reset the last error code to 0, this change allows the user to immediately grab the error code and worry about the string representation later if needs be.
2013-06-25 20:10:28 +01:00
Dominik Picheta
3001ed54f9 Fixed overflow in sockets.parseIP4. 2013-05-24 19:43:37 +01:00
Dominik Picheta
0b2512e1e4 Improved the performance of the SCGI module when dealing with multiple
concurrent requests.
2013-05-19 18:33:47 +01:00
Araq
ce5a1365c2 preparations for the new symbol binding rules for clean templates 2013-05-18 10:05:06 +02:00
Dominik Picheta
5267984985 Deprecated recvLine and added an improved version named readLine to the
sockets module.
2013-03-23 20:13:11 +00:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Dominik Picheta
f2041afad5 Fixed timeouts for sockets, implemented timeouts in httpclient and fixed
a bug with redirection in httpclient.
2013-02-23 23:12:11 +00:00
Araq
5a9637f2f3 make some tests green 2013-01-08 22:51:23 +01:00
Dominik Picheta
f83881dd4e Fixed symbol conflict in the sockets module on Windows. 2012-12-23 14:31:16 +00:00
Dominik Picheta
da609fc445 Fixed many deprecation warnings. asyncio.recvLine now throws an
exception when an error occurs. Added sockets.SocketError.
2012-12-23 14:05:16 +00:00
Dominik Picheta
3cbac13546 Rewrote the implementation of parsing chunked transfer coding in
httpclient. Fixes #272.
2012-12-23 11:22:42 +00:00
Dominik Picheta
6cb8edfce9 recvLine now works with unbuffered ssl sockets.
Added higher level recv functions.
2012-12-22 23:03:28 +00:00
Dominik Picheta
63112696b0 Fixes SSL implementation of sendAsync. 2012-12-08 19:27:00 +00:00
Dominik Picheta
d6632ad973 Fixes #268 2012-12-08 19:04:45 +00:00
Araq
0834224070 disable SSLv2_method for ubuntu 2012-12-03 21:48:12 +01:00
Araq
8948a97151 bugfix: 'not nil' and 'shared' types 2012-12-02 20:02:42 +01:00
Araq
476f6fc8ee sockets: proper bugfix for solaris 2012-11-22 08:08:54 +01:00
Araq
1dfc57c5ff bugfix: sockets with SSL support 2012-11-20 22:04:45 +01:00
Araq
67d9933eb3 sockets.nim: bugfix for solaris 2012-11-20 21:40:22 +01:00
Araq
ec9b1f78e1 annotated effects of modules: os, sockets, times 2012-11-18 13:34:48 +01:00
Dominik Picheta
76c4b0516a Many doc improvements. Changed Threads.joinThreads' param's type to varargs. 2012-11-04 22:30:19 +00:00
Araq
42d0911d6a nimbuild should work again 2012-11-01 01:11:48 +01:00
Araq
2133fbfcce bugfix: wrong assertions for C++ code generation; some solaris support; first steps to an effect system 2012-10-30 22:29:03 +01:00
Zahary Karadjov
d9d82fb0af syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info.

* nkMacroStmt has been removed
   Macro statements are now mapped to regular nkCall nodes.
   The support for additional clauses (such as else, except, of, etc)
   have been restored - they will now appear as additional arguments
   for the nkCall node (as nkElse, nkExcept, etc nodes)

* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Dominik Picheta
d00cb877fd Fixes sockets.recvFrom not setting length of data. 2012-09-23 01:31:49 +01:00
Dominik Picheta
6c6f9e6674 Ftpclient now fully works both synchronously and asynchronously.
Fixed some deprecation doc messages. And some issues with asyncio.
2012-09-22 16:39:51 +01:00
Araq
64c638a9dc first steps for overloading support of passing blocks; bugfix: test results of 'compile' are not overwritten 2012-09-11 08:09:34 +02:00
Dominik Picheta
d127ad5076 Asyncio module now works on file descriptors. 2012-09-02 19:58:13 +01:00
My Name
6ab873cc63 changed port to TPort 2012-08-20 15:13:50 -05:00
My Name
de04b50f67 added port output for sockets.recvFrom 2012-08-20 13:34:56 -05:00
Dominik Picheta
8dd1a5a181 Sockets module should compile again on Windows. Fixed asyncio not compiling. 2012-08-12 20:25:30 +01:00
Dominik Picheta
e9604b4433 UDP improvements for the sockets module. Renamed ftpclient.fileExists to
existsFile for consistency. Added tasyncudp test.
2012-08-12 11:53:09 +01:00
Dominik Picheta
40ae258e7e Some improvements to the sockets module. 2012-07-25 19:55:52 +01:00
Dominik Picheta
1be06ee2de Fixes deprecation warning, fixes documentation error. 2012-07-23 20:56:39 +01:00
Dominik Picheta
5310a3044f Many fixes for asynchronous sockets. Asyncio should now work well with buffered and unbuffered plain and ssl sockets. Added asyncio
test to the test suite.
2012-07-22 23:32:49 +01:00
Araq
a6ee0eb299 sockets compile again with SSL support 2012-07-10 00:16:04 +02:00
Araq
4966212141 more fixes for new integer promotion rules; fixes #152; fixes #157; fixes #156; fixes #155 2012-07-09 21:11:11 +02:00
Araq
4fbba0a65a changed integer promotion rules; breaks bootstrapping and lots of code 2012-07-08 21:03:47 +02:00
Dominik Picheta
7364d72548 Fixed httpclient bugs, fixed socket bugs and fixed sockets for windows. 2012-06-09 14:24:41 +01:00
Dominik Picheta
3294cb10a9 Sockets are now buffered and have ssl support through openssl. 2012-06-03 19:09:42 +01:00
dom96
ce412b4b6c The httpserver now gathers the headers for the user. Fixed ambiguity in recvLine in the sockets module. 2012-05-03 23:16:37 +01:00
dom96
4218cde549 Forgot to rename ETimedout to ETimeout in the sockets module in some places. 2012-03-22 20:48:16 +00:00
dom96
e14bad3c66 Fixed a problem with message parsing in the IRC module. Introduced timeout to procs in the sockets module. 2012-03-22 18:33:09 +00:00
dom96
9aeecaa4cf recvLineAsync for non-blocking sockets implemented, as well as recvLine for asyncio async sockets. Fixed removeDir on windows. 2012-02-18 00:34:44 +00:00
Araq
354012db67 Merge pull request #97 from ddlsmurf/fixes_macosx
Fixes for macosx
2012-01-22 16:16:42 -08:00
dom96
b298b07567 Added asyncio module; irc, scgi and the ftpclient modules work with it. Added (de)allocCStringArray. Many async sockets fixes. 2012-01-22 16:21:05 +00:00
Eric Doughty-Papassideris
42e74aaf8e Less likely to overload struct timeval 2012-01-21 17:51:58 +01:00
Eric Doughty-Papassideris
1602e8e2f4 MSG_NOSIGNAL not defined on mac os x 2012-01-21 15:52:04 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
dom96
264de4537e Added ftpclient module. Fixed docs in sockets module. Added dll tests to test suite. 2011-11-04 00:22:04 +00:00