Parker Schuh | d7db83d | 2017-02-08 20:49:15 -0800 | [diff] [blame] | 1 | #ifndef _AOS_VISION_DEBUG_TCP_CLIENT_H_ |
| 2 | #define _AOS_VISION_DEBUG_TCP_CLIENT_H_ |
Parker Schuh | b59bf5e | 2016-12-28 21:09:36 -0800 | [diff] [blame] | 3 | |
Parker Schuh | 309dd72 | 2017-02-25 11:31:18 -0800 | [diff] [blame] | 4 | #include <string> |
Parker Schuh | b59bf5e | 2016-12-28 21:09:36 -0800 | [diff] [blame] | 5 | |
Austin Schuh | 60e7794 | 2022-05-16 17:48:24 -0700 | [diff] [blame] | 6 | #include "aos/vision/events/epoll_events.h" |
| 7 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 8 | namespace aos::events { |
Parker Schuh | b59bf5e | 2016-12-28 21:09:36 -0800 | [diff] [blame] | 9 | |
| 10 | // Handles the client connection logic to hostname:portno |
| 11 | class TcpClient : public EpollEvent { |
| 12 | public: |
Parker Schuh | 309dd72 | 2017-02-25 11:31:18 -0800 | [diff] [blame] | 13 | TcpClient(const std::string &hostname, int portno); |
Parker Schuh | b59bf5e | 2016-12-28 21:09:36 -0800 | [diff] [blame] | 14 | |
| 15 | // Implement ReadEvent from EpollEvent to use this class. |
| 16 | }; |
| 17 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 18 | } // namespace aos::events |
Parker Schuh | b59bf5e | 2016-12-28 21:09:36 -0800 | [diff] [blame] | 19 | |
Parker Schuh | d7db83d | 2017-02-08 20:49:15 -0800 | [diff] [blame] | 20 | #endif // _AOS_VISION_DEBUG_TCP_CLIENT_H_ |