add IP stack simulator
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user