add IP stack simulator

This commit is contained in:
Martin Michelsen
2022-03-07 19:45:18 -08:00
parent b2437b085c
commit 951b6085ab
19 changed files with 1745 additions and 96 deletions
+4
View File
@@ -24,6 +24,8 @@ public:
void listen(int port);
void connect_client(struct bufferevent* bev);
void send_to_client(const std::string& data);
void send_to_server(const std::string& data);
@@ -64,6 +66,8 @@ private:
void on_server_input(struct bufferevent* bev);
void on_server_error(struct bufferevent* bev, short events);
void on_client_connect(struct bufferevent* bev);
size_t get_size_field(const PSOCommandHeader* header);
size_t get_command_field(const PSOCommandHeader* header);