[PATCH 1/1] set transport timeout for c++ binding

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH 1/1] set transport timeout for c++ binding

Prabhakar_Pujeri
Signed-off-by: prabhakar pujeri <[hidden email]>
---
 src/cpp/OpenWsmanClient.cpp | 4 ++++
 src/cpp/OpenWsmanClient.h   | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/cpp/OpenWsmanClient.cpp b/src/cpp/OpenWsmanClient.cpp
index e253b31..0dfe4d6 100644
--- a/src/cpp/OpenWsmanClient.cpp
+++ b/src/cpp/OpenWsmanClient.cpp
@@ -498,6 +498,10 @@ void OpenWsmanClient::SetAuth(const string &auth_method)
  wsman_transport_set_auth_method(cl, "digest");
  }
 }
+void OpenWsmanClient::SetTimeout(unsigned long mtime)
+{
+ wsman_transport_set_timeout(cl,mtime);
+}
 
 void OpenWsmanClient::SetUserName(const string &user_name)
 {
diff --git a/src/cpp/OpenWsmanClient.h b/src/cpp/OpenWsmanClient.h
index 49ea1f3..de4b2a6 100644
--- a/src/cpp/OpenWsmanClient.h
+++ b/src/cpp/OpenWsmanClient.h
@@ -137,7 +137,9 @@ namespace WsmanClientNamespace
 
  // Set auth method
  void SetAuth(const string &auth_method = string("digest"));
-
+
+ // Set timeout method
+ void SetTimeout(unsigned long mtime);
  // Set user name
  void SetUserName(const string &user_name);
 
--
2.4.2


------------------------------------------------------------------------------
_______________________________________________
Openwsman-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openwsman-devel
Loading...