blob: 8aab2ccdb6121eb2a4fb31a32380d84f2fe6a07a [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
Parker Schuhb59bf5e2016-12-28 21:09:36 -08009namespace aos {
10namespace events {
11
12// Handles the client connection logic to hostname:portno
13class TcpClient : public EpollEvent {
14 public:
Parker Schuh309dd722017-02-25 11:31:18 -080015 TcpClient(const std::string &hostname, int portno);
Parker Schuhb59bf5e2016-12-28 21:09:36 -080016
17 // Implement ReadEvent from EpollEvent to use this class.
18};
19
20} // namespace events
21} // namespace aos
22
Parker Schuhd7db83d2017-02-08 20:49:15 -080023#endif // _AOS_VISION_DEBUG_TCP_CLIENT_H_