CVS: rdesktop/uiports qtwin.cpp,1.2,1.3
Jay Sorg <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop/uiports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24655
Modified Files:
qtwin.cpp
Log Message:
out supported parameters when passing none
Index: qtwin.cpp
===================================================================
RCS file: /cvsroot/rdesktop/rdesktop/uiports/qtwin.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** qtwin.cpp 27 Jun 2004 19:08:35 -0000 1.2
--- qtwin.cpp 27 Jun 2004 19:38:18 -0000 1.3
***************
*** 518,522 ****
if (!rdp_connect(g_servername, RDP_LOGON_NORMAL, "", "", "", ""))
return;
- printf("connected\n");
// start notifier
SocketNotifier = new QSocketNotifier(g_sock, QSocketNotifier::Read, MW);
--- 518,521 ----
***************
*** 1250,1253 ****
--- 1249,1268 ----
/*****************************************************************************/
+ void out_params(void)
+ {
+ fprintf(stderr, "rdesktop: A Remote Desktop Protocol client.\n");
+ fprintf(stderr, "Version " VERSION ". Copyright (C) 1999-2003 Matt Chapman.\n");
+ fprintf(stderr, "See http://www.rdesktop.org/ for more information.\n\n");
+ fprintf(stderr, "Usage: qtrdesktop [options] server\n");
+ fprintf(stderr, " -g: desktop geometry (WxH)\n");
+ fprintf(stderr, " -4: use RDP version 4\n");
+ fprintf(stderr, " -5: use RDP version 5 (default)\n");
+ fprintf(stderr, " -t: tcp port)\n");
+ fprintf(stderr, " -a: connection colour depth\n");
+ fprintf(stderr, " -T: window title\n");
+ fprintf(stderr, "\n");
+ }
+
+ /*****************************************************************************/
/* produce a hex dump */
void hexdump(unsigned char *p, unsigned int len)
***************
*** 1346,1350 ****
--- 1361,1368 ----
if (in_argc <= 1)
+ {
+ out_params();
return 0;
+ }
g_argc = in_argc;
g_argv = in_argv;
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com