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
This commit is contained in:
kjellander@webrtc.org
2014-07-01 16:28:13 +00:00
parent 9138eb649b
commit 0402515d35
4 changed files with 52 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ class MainWnd : public MainWindow {
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 @@ class MainWnd : public MainWindow {
void* nested_msg_;
MainWndCallback* callback_;
static ATOM wnd_class_;
std::string server_;
std::string port_;
bool auto_connect_;
bool auto_call_;
};
#endif // WIN32