News for hackers. Stuff that matters.
Re:State Machines and the Strange Case of Mutating API by typedef_struct on Wednesday December 26, 2018 @01:46PM (#18763798)
I'd probably do it like this:

  socks5_socket([&](auto closed_socket) {
      closed_socket.connect_unauthenticated(proxy_addr, [&](auto authenticated_socket) {
          authenticated_socket.connect_tcp(addr, [&](auto tcp_socket) {
              //tcp_socket.send or w/e
          });
      });
  });

There are no comments on this comment yet.