blob: 74f1418437455e882c3524d994d374319c6c3e4c [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
4#include "aos/vision/events/epoll_events.h"
5
6#include <memory>
Parker Schuh309dd722017-02-25 11:31:18 -08007#include <string>
Parker Schuhb59bf5e2016-12-28 21:09:36 -08008
9namespace 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_