Skip to content

Commit

Permalink
Refactor the negotiate() and connected functions
Browse files Browse the repository at this point in the history
Having a gazillion arguments to negotiate is unwieldy and
unmaintainable. Use the CLIENT type to handle parsed stuff instead.

Originally we were going to pass a pointer to a CLIENT, but we need to
keep the cur_client global variable for config file parsing, so might
as well reuse that.

Not so clean, so we might revisit this in the future, but at least this
reduces complexity somewhat.

Signed-off-by: Wouter Verhelst <[email protected]>
  • Loading branch information
yoe committed Sep 28, 2024
1 parent 82c500f commit 17043b0
Showing 1 changed file with 107 additions and 145 deletions.
Loading

0 comments on commit 17043b0

Please sign in to comment.