blob: e89e0fedd52e31415d160dca4a1ba897b8856407 [file] [log] [blame]
Parker Schuhd7db83d2017-02-08 20:49:15 -08001#ifndef _AOS_VISION_DEBUG_TCP_CLIENT_H_
2#define _AOS_VISION_DEBUG_TCP_CLIENT_H_
Parker Schuhb59bf5e2016-12-28 21:09:36 -08003
Parker Schuh309dd722017-02-25 11:31:18 -08004#include <string>
Parker Schuhb59bf5e2016-12-28 21:09:36 -08005
Austin Schuh60e77942022-05-16 17:48:24 -07006#include "aos/vision/events/epoll_events.h"
7
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -08008namespace aos::events {
Parker Schuhb59bf5e2016-12-28 21:09:36 -08009
10// Handles the client connection logic to hostname:portno
11class TcpClient : public EpollEvent {
12 public:
Parker Schuh309dd722017-02-25 11:31:18 -080013 TcpClient(const std::string &hostname, int portno);
Parker Schuhb59bf5e2016-12-28 21:09:36 -080014
15 // Implement ReadEvent from EpollEvent to use this class.
16};
17
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -080018} // namespace aos::events
Parker Schuhb59bf5e2016-12-28 21:09:36 -080019
Parker Schuhd7db83d2017-02-08 20:49:15 -080020#endif // _AOS_VISION_DEBUG_TCP_CLIENT_H_