pluto-src 0.1.1+0.10.4

Sources of Pluto (Lua 5.4 dialect) and logic to build it.
Documentation
#pragma once

#include "fwd.hpp"

NAMESPACE_SOUP
{
	struct ServerService
	{
		using callback_t = void(*)(Socket& client, ServerService&, Server&) SOUP_EXCAL;

		// on_connection_established is called when the TCP connection is established
		callback_t on_connection_established = nullptr;

		// on_tunnel_established is called when:
		// - (non-crypto) the TCP connection is established
		// - (crypto) the TLS handshake has completed
		const callback_t on_tunnel_established;

		ServerService(callback_t on_tunnel_established)
			: on_tunnel_established(on_tunnel_established)
		{
		}
	};
}