Commit Graph

36 Commits

Author SHA1 Message Date
tidwall 3a190d6d20 Added Wake to connection 2018-10-17 04:38:38 -07:00
Josh Baker dd88755b17 Added multithreaded support
It's now possible to fire up multiple event loops in separate
goroutines. All that's needed is to set the `events.NumLoops` options
before calling `Serve`.

There are a few breaking API changes.

- The events pass an evio.Conn param that represents the unique
incoming socket connection.
- Prewrite and Postwrite events have been removed.
- Wake and Dial functions have been removed.
- The Transform utility has been removed.

The older version has been tagged as `v0.1.0` for vendoring purposes.
2018-05-23 16:49:45 -07:00
Josh Baker cf82b88f7c SO_REUSEPORT
Just add "reuseport=true" to an address:

evio.Serve(events, "tcp://0.0.0.0:1234?reuseport=true")
2018-03-19 12:47:53 -07:00
Josh Baker d99d9b2eb9 udp server bindings 2017-11-14 11:42:15 -07:00
Josh Baker 5641498bcd return accurate local addr on open
Use the write event before the read event and wait for an accurate local
address prior to firing the Opened event.
2017-11-08 16:45:30 -07:00
Josh Baker 81bd0514f4 fix dial with no addr 2017-11-08 10:20:52 -07:00
Josh Baker 1eb8a15a42 fix scheme 2017-11-08 10:13:47 -07:00
Josh Baker 1854813bd9 fixed echo example 2017-11-07 16:12:16 -07:00
Josh Baker 7da2f5a251 Dial outbound connection
It's not possible to dial an outbound connection which connects to the
event loop exactly like inbound connection.
2017-11-07 15:59:24 -07:00
Josh Baker 749915306d wip 2017-11-07 09:52:16 -07:00
Josh Baker 9471b43256 wip 2017-11-07 06:49:33 -07:00
Josh Baker 0852af983f Merge branch 'master' into proxy 2017-11-06 05:01:34 -07:00
Josh Baker 91a7a6b471 added rn newline 2017-11-06 04:48:10 -07:00
Josh Baker a811bc2da2 wip 2017-11-06 03:58:06 -07:00
Josh Baker 3801fe2cd9 use bombardier instead of wrk 2017-11-04 06:26:00 -07:00
Josh Baker 8ea2a4a98f benchmarks 2017-11-03 16:39:28 -07:00
Josh Baker da1895587a single proc 2017-11-03 13:22:31 -07:00
Josh Baker 6a86476275 benchmarks 2017-11-02 18:31:36 -07:00
Josh Baker 23d55c2b35 updated parser 2017-11-02 13:29:13 -07:00
Josh Baker 99cbc8cb19 license message 2017-11-02 08:08:18 -07:00
Josh Baker c786acc971 better coverage 2017-11-01 17:36:35 -07:00
Josh Baker b304b5f216 translator 2017-10-31 17:44:57 -07:00
Josh Baker 056bfe5c65 Merge branch 'master' of https://github.com/tidwall/doppio-net 2017-10-30 14:02:16 -07:00
Josh Baker 7b0ac89cd2 wip translators 2017-10-30 14:02:10 -07:00
Josh Baker 132f6ca1a1
Update README.md 2017-10-30 06:08:07 -07:00
Josh Baker 7f2b14fe81 updated stdlib logic 2017-10-30 05:59:57 -07:00
Josh Baker 912b6ea575 local and remote addresses 2017-10-29 14:05:23 -07:00
Josh Baker 3c262df83c wip addr 2017-10-29 13:09:40 -07:00
Josh Baker 74c1ecc501 rename 2017-10-28 14:58:59 -07:00
Josh Baker ca18f40d92 add link 2017-10-28 12:35:19 -07:00
Josh Baker c4a44c4fad updated examples README 2017-10-28 12:34:12 -07:00
Josh Baker 6d5eca9acd refactor internal sockopts 2017-10-28 12:23:13 -07:00
Josh Baker 8897e0d5f0 wip wake with write 2017-10-27 18:27:18 -07:00
Josh Baker 17aa5a0890 wip mt 2017-10-27 17:01:03 -07:00
Josh Baker 4b5991abe5 moved examples 2017-07-04 11:43:52 -07:00
Josh Baker f36b6b2ca7 first commit 2017-07-03 20:39:18 -07:00