Refactor Client & Socket
[platform/core/appfw/aul-1.git] / aul / socket / socket.hh
index 00d9e07..e07f306 100644 (file)
@@ -31,8 +31,8 @@ static const int MAX_AUL_BUFF_SIZE = 131071;
 
 class Socket {
  public:
-  Socket(std::string path, bool is_client = true);
-  Socket(int fd, bool is_client = true);
+  Socket(std::string path);
+  Socket(int fd);
   virtual ~Socket();
 
   int Send(const void* buf, unsigned int len);
@@ -41,6 +41,7 @@ class Socket {
   int Connect();
 
   int GetFd();
+  void SetTimeout(int timesec);
   std::string GetPath();
 
  private:
@@ -50,7 +51,6 @@ class Socket {
  private:
   std::string path_;
   int fd_;
-  bool is_client_;
   struct sockaddr_un addr_ = { 0, };
 };