From e35c541715c8d001001070b3a23958388f9cadf6 Mon Sep 17 00:00:00 2001 From: guotie Date: Fri, 11 Oct 2013 14:24:23 +0800 Subject: [PATCH] Update zm_remote_camera.h --- src/zm_remote_camera.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/zm_remote_camera.h b/src/zm_remote_camera.h index 32a331136..19cffdcf0 100644 --- a/src/zm_remote_camera.h +++ b/src/zm_remote_camera.h @@ -23,6 +23,9 @@ #include "zm_camera.h" #include +//#include +#include +#include #include // @@ -40,8 +43,8 @@ protected: std::string auth64; protected: - struct hostent *hp; - struct sockaddr_in sa; + struct addrinfo *hp; + struct sockaddr *sa; public: RemoteCamera( int p_id, const std::string &p_proto, const std::string &p_host, const std::string &p_port, const std::string &p_path, int p_width, int p_height, int p_colours, int p_brightness, int p_contrast, int p_hue, int p_colour, bool p_capture );