This commit is contained in:
Josh Baker 2017-11-08 16:59:29 -07:00 committed by GitHub
parent 7fd6dad933
commit f416191b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -155,15 +155,9 @@ events.Data = func(id int, in []byte) (out []byte, action evio.Action) {
### Dial out
An outbound connection can created by using the `Dial` function that is
made available through the `Serving` event. Dialing a new connection will
return a new connection ID and attach that connection to the event loop in
the same manner as incoming connections. This operation is completely
non-blocking including any DNS resolution.
An outbound connection can be created by using the `Dial` function that is made available through the `Serving` event. Dialing a new connection will return a new connection ID and attach that connection to the event loop in the same manner as incoming connections. This operation is completely non-blocking including any DNS resolution.
All new outbound connection attempts will immediately fire an `Opened`
event and end with a `Closed` event. A failed connection will send the
connection error through the `Closed` event.
All new outbound connection attempts will immediately fire an `Opened` event and end with a `Closed` event. A failed connection will send the connection error through the `Closed` event.
```go
var srv evio.Server