boring icon indicating copy to clipboard operation
boring copied to clipboard

Revamp handshake entrypoints

Open nox opened this issue 2 years ago • 0 comments
trafficstars

I first introduce setup_accept and setup_connect to simplify looping over an interrupted handshake.

This led me to the realisation that removing accept and connect both simplifies the handshake error type and allows us to more easily distinguish between setup failures (caused by the user of the library) and actual errors happening on the stream while performing handshakes.

nox avatar Aug 03 '23 17:08 nox