Commit graph

585 commits

Author SHA1 Message Date
Sönke Ludwig ee09a4068e Merge pull request #19 from vibe-d/latest_compilers
Test latest compilers
2017-07-21 22:57:49 +02:00
Sönke Ludwig 8bf3773f5a Merge pull request #18 from vibe-d/timer_opt
Use a linked list for the timer queue.
2017-07-21 21:55:00 +02:00
Sönke Ludwig 607fc2b04e Update compiler list in README. 2017-07-21 21:44:15 +02:00
Sönke Ludwig 8f88adb53a Test DMD 2.075.0 and drop 2.070.x frontend support. 2017-07-21 21:43:40 +02:00
Sönke Ludwig 09a67149bc
Use a linked list for the timer queue.
Improves insertion and deletion times for many pending timers considerably.
2017-07-21 21:35:10 +02:00
Sönke Ludwig beef9c2567
Add a doubly linked list implementation. 2017-07-21 21:35:10 +02:00
Sönke Ludwig 1c666a0191
Fix send() return value handling.
A value of 0 doesn't indicate a closed connection as for recv().
2017-07-19 10:42:33 +02:00
Sönke Ludwig 9518ec4dce
Remove log noise for listening TCP sockets. 2017-07-14 12:35:17 +02:00
Sönke Ludwig db28d6e6c9 Merge pull request #14 from vibe-d/windows_udp
Implement basic UDP support for the WinAPI driver.
2017-06-27 01:05:13 +02:00
Sönke Ludwig 077c643e08 Fix 64-bit compile error. 2017-06-27 00:54:32 +02:00
Sönke Ludwig c55eeaf476 Update development status table. 2017-06-26 23:41:38 +02:00
Sönke Ludwig a7e5b49943 Implement basic UDP support for the WinAPI driver.
Note that the IOMode.immediate semantics are not compatible with the current 0-udp.d test and will instead call the callback asynchronously. It appears that non-blocking semantics are generally not possible with overlapped sockets.
2017-06-26 23:37:33 +02:00
Sönke Ludwig a263637bd3 Fix WSASend/WSARecv usage w.r.t. WSABUF parameter.
The documentation states that the buffer must be kept alive during the whole operation, so using a stack allocated buffer is illegal.
2017-06-26 23:31:22 +02:00
Sönke Ludwig ef065762b3 Fix WinAPIEventDriverCore.waiterCount to include pending timers. 2017-06-26 23:28:15 +02:00
Sönke Ludwig afd8b59952 Fix compiler test list. 2017-06-25 00:47:49 +02:00
Sönke Ludwig 5b48154e7b Update tested compiler versions. 2017-06-24 23:24:15 +02:00
Sönke Ludwig f3c9157705 Merge pull request #12 from vibe-d/winsock
Add Windows TCP socket support
2017-06-24 23:20:52 +02:00
Sönke Ludwig 3a41cfbefe Mention Windows TCP support in README.md. 2017-06-24 22:31:16 +02:00
Sönke Ludwig ca11fdec82 Implement WinAPI based TCP socket support. 2017-06-24 22:31:16 +02:00
Sönke Ludwig ab796477e2 Move .userData to the socket driver.
Generally each FD type should have its own .userData property in the respective driver. This is important for drivers that don't have a unified file descriptor space and need to store user data in a type specific way.
2017-06-24 22:01:32 +02:00
Sönke Ludwig b31e91359f
Remove "adopting file descriptors" open question. 2017-06-10 10:57:48 +02:00
Sönke Ludwig 68e8fcb21d Merge pull request #11 from vibe-d/waiter_count
Fix automatic exiting of the event loop/waiter count tracking
2017-06-10 10:52:23 +02:00
Sönke Ludwig b20dd9b398
Adjust all tests to rely on automatic event loop exiting. 2017-06-10 10:28:16 +02:00
Sönke Ludwig d99eb1be34
Fix waiter count tracking in the Posix driver. Fixes #8. 2017-06-10 10:27:55 +02:00
Sönke Ludwig abf8587078
Add SmallIntegerSet.empty. 2017-06-10 10:27:20 +02:00
Sönke Ludwig 13a0adb967
Add a minimal test for #8. 2017-06-10 10:21:47 +02:00
Sönke Ludwig 8e385d8b1d
Fix epoll status event masks. Fixes #10. 2017-06-10 00:06:45 +02:00
Sönke Ludwig 1ff3d00020
Check return value of eventfd for errors. 2017-06-10 00:06:45 +02:00
Sönke Ludwig f4ca542b92
Add assertions in ChunkedVector to detect failed memory allocations. 2017-06-10 00:06:45 +02:00
Sönke Ludwig 35f423a29c Merge pull request #9 from pinver/patch-1
avoid to pollute the console by default
2017-04-26 13:14:23 +02:00
pinver 435e365c3a idem, avoid to pollute the console as default 2017-04-25 16:32:01 +02:00
pinver 1be26214e6 avoid to pollute the console by default 2017-04-25 16:28:31 +02:00
Sönke Ludwig 3dad0315af
Update .gitignore. 2017-03-24 09:06:28 +01:00
Sönke Ludwig 872f1b12b9
For direction of getLocalAddress and getRemoteAddress. 2017-03-24 09:04:32 +01:00
Sönke Ludwig 420c361b5f Fix WinAPI sockets stub. 2017-03-11 09:17:38 +01:00
Sönke Ludwig 758256c210
Fix compilation of the libasync driver stub. 2017-03-10 22:56:07 +01:00
Sönke Ludwig 1d330d6330
Extend datagram socket API.
Adds .setTargetAddress() and makes .getXAddress() work for datagram sockets, too.
2017-03-10 22:46:43 +01:00
Sönke Ludwig 2e5b13ee98
Add EventDriverSockets.getRemoteAddress. 2017-03-10 20:25:28 +01:00
Sönke Ludwig a25b49228f Properly count IO completion as an event in WinAPIEventDriverCore.processEvents. 2017-03-09 16:02:42 +01:00
Sönke Ludwig 47133b0033 Use the right Optlink configurations. 2017-03-09 11:56:55 +01:00
Sönke Ludwig f4a6b2595d Use latest DUB for testing on Windows. 2017-03-09 11:50:59 +01:00
Sönke Ludwig 09e10cff7f Test winapi configuration on Windows and test on DMD 2.073.1. 2017-03-09 11:39:59 +01:00
Sönke Ludwig 5f3dc4fd78 Fix x86_mscoff/-m32mscoff build. 2017-03-09 11:35:19 +01:00
Sönke Ludwig bcc059e6d7 Fix bogus outOfWaiters event loop exit reason for active event waits. 2017-02-22 17:35:26 +01:00
Sönke Ludwig 578065f70a Fix exit conditions in the WinAPI event loop. 2017-02-22 17:34:44 +01:00
Sönke Ludwig f84139ba63 Fix infinite look when stopping timers with multiple others pending. 2017-02-22 17:33:03 +01:00
Sönke Ludwig c242fdae16
Test with LDC 1.1.0 final and add compiler support list to README. 2017-02-01 12:15:58 +01:00
Sönke Ludwig 49521f2586
Remove debug output. 2017-01-31 10:06:51 +01:00
Sönke Ludwig 4b357c3326
Make sure the socket ref count can reach zero in user code. 2017-01-30 23:11:09 +01:00
Sönke Ludwig 490dc15128
Properly handle the case where a TCP connection gets immediately disconnected.
This can result in both, the write-ready and the disconnect events, to be triggered during the same event loop iteration.
2017-01-30 22:52:13 +01:00