hermes/include/Proxy.h
Juanjo Gutiérrez d7a0f669c7
Some checks failed
continuous-integration/drone/push Build is failing
fix stuff
2025-03-28 16:58:55 +01:00

23 lines
511 B
C++

// Proxy.h
#pragma once
#include <string>
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include "Socket.h"
#define SMTP_STATE_WAIT_FOR_HELO 0
#define SMTP_STATE_WAIT_FOR_MAILFROM 1
#define SMTP_STATE_WAIT_FOR_RCPTTO 2
#define SMTP_STATE_WAIT_FOR_DATA 3
class Proxy {
public:
Proxy();
void setOutside(Socket& socket);
void run(const std::string& peer_address);
private:
boost::asio::io_context io_context_;
boost::asio::ssl::context ssl_context;
Socket* outside_socket_;
};