Rearrange stuff
This commit is contained in:
parent
0e2f09c629
commit
b795877967
23 changed files with 478 additions and 139 deletions
19
include/Proxy.h
Normal file
19
include/Proxy.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Proxy.h
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include "SocketInterface.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(SocketInterface* outside_socket) : outside(outside_socket) {}
|
||||
|
||||
void run(std::string& peer_address);
|
||||
|
||||
private:
|
||||
SocketInterface* outside;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue