Implement command line flags for peerconnection client example on Windows
Adding the flags and functionality for 'autoconnect', 'autocall', 'server',
'port', and 'help' like in the linux example.
BUG=3459
R=tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/13609004
Patch from Vicken Simonian <vsimon@gmail.com>.
git-svn-id: http://webrtc.googlecode.com/svn/trunk@6573 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/talk/examples/peerconnection/client/main_wnd.h b/talk/examples/peerconnection/client/main_wnd.h
index 6d2bf3e..77da9f6 100644
--- a/talk/examples/peerconnection/client/main_wnd.h
+++ b/talk/examples/peerconnection/client/main_wnd.h
@@ -93,7 +93,7 @@
UI_THREAD_CALLBACK = WM_APP + 1,
};
- MainWnd();
+ MainWnd(const char* server, int port, bool auto_connect, bool auto_call);
~MainWnd();
bool Create();
@@ -207,6 +207,10 @@
void* nested_msg_;
MainWndCallback* callback_;
static ATOM wnd_class_;
+ std::string server_;
+ std::string port_;
+ bool auto_connect_;
+ bool auto_call_;
};
#endif // WIN32