blob: 16d7265924726a27c1d02f2c6bfd35e97c9cd871 [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 Schuhb59bf5e2016-12-28 21:09:36 -08004#include <memory>
Parker Schuh309dd722017-02-25 11:31:18 -08005#include <string>
Parker Schuhb59bf5e2016-12-28 21:09:36 -08006
Austin Schuh60e77942022-05-16 17:48:24 -07007#include "aos/vision/events/epoll_events.h"
8
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -08009namespace aos::events {
Parker Schuhb59bf5e2016-12-28 21:09:36 -080010
11// Handles the client connection logic to hostname:portno
12class TcpClient : public EpollEvent {
13 public:
Parker Schuh309dd722017-02-25 11:31:18 -080014 TcpClient(const std::string &hostname, int portno);
Parker Schuhb59bf5e2016-12-28 21:09:36 -080015
16 // Implement ReadEvent from EpollEvent to use this class.
17};
18
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -080019} // namespace aos::events
Parker Schuhb59bf5e2016-12-28 21:09:36 -080020
Parker Schuhd7db83d2017-02-08 20:49:15 -080021#endif // _AOS_VISION_DEBUG_TCP_CLIENT_H_