savi-lang / TCP

TCP networking implementation for the Savi standard library.
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

Remove deprecated usage of `IO.Engine.new_tcp_connect!`. #18

Closed jemc closed 1 year ago

jemc commented 1 year ago

This function was unsafe for IO to expose, so it needs to be removed from there.

This commit copies the TCP-specific logic from IO.Engine into the TCP.Engine where it belongs.

This commit also removes the now-obsolete TCP.Engine.connect_error method, as connection errors will all now be surfaced via an IO.Action.OpenFailed action sent to the actor as a deferred IO action.