#pragma once #include #include "core.hpp" #include "uvloop.hpp" namespace uv { class TcpStream { public: TcpStream(UvLoop& loop); template T* data(); template void data(T* value); void close(callback_t callback); operator uv_handle_t*(); operator uv_tcp_t*(); operator uv_stream_t*(); private: uv_tcp_t stream; }; }