21 |
#include <stdlib.h> /* malloc realloc free */ |
#include <stdlib.h> /* malloc realloc free */ |
22 |
#include <unistd.h> /* read close getuid getgid getpid getppid gethostname */ |
#include <unistd.h> /* read close getuid getgid getpid getppid gethostname */ |
23 |
#include <fcntl.h> /* open */ |
#include <fcntl.h> /* open */ |
|
#include <getopt.h> /* getopt */ |
|
24 |
#include <pwd.h> /* getpwuid */ |
#include <pwd.h> /* getpwuid */ |
25 |
#include <sys/stat.h> /* stat */ |
#include <sys/stat.h> /* stat */ |
26 |
#include <sys/time.h> /* gettimeofday */ |
#include <sys/time.h> /* gettimeofday */ |
59 |
int c; |
int c; |
60 |
|
|
61 |
STATUS("rdesktop: A Remote Desktop Protocol client.\n"); |
STATUS("rdesktop: A Remote Desktop Protocol client.\n"); |
62 |
STATUS("Version "VERSION". Copyright (C) 1999-2000 Matt Chapman.\n\n"); |
STATUS("Version "VERSION". Copyright (C) 1999-2000 Matt Chapman.\n"); |
63 |
|
STATUS("See http://www.rdesktop.org/ for more information.\n\n"); |
64 |
|
|
65 |
while ((c = getopt(argc, argv, "u:n:w:h:k:mbl?")) != -1) |
while ((c = getopt(argc, argv, "u:n:w:h:k:mbl?")) != -1) |
66 |
{ |
{ |
139 |
|
|
140 |
STATUS("Connection successful.\n"); |
STATUS("Connection successful.\n"); |
141 |
|
|
142 |
snprintf(title, sizeof(title), "rdesktop - %s", server); |
strcpy(title, "rdesktop - "); |
143 |
|
strncat(title, server, sizeof(title)); |
144 |
|
|
145 |
if (ui_create_window(title)) |
if (ui_create_window(title)) |
146 |
{ |
{ |
147 |
rdp_main_loop(); |
rdp_main_loop(); |