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 */ |
138 |
|
|
139 |
STATUS("Connection successful.\n"); |
STATUS("Connection successful.\n"); |
140 |
|
|
141 |
snprintf(title, sizeof(title), "rdesktop - %s", server); |
strcpy(title, "rdesktop - "); |
142 |
|
strncat(title, server, sizeof(title)); |
143 |
|
|
144 |
if (ui_create_window(title)) |
if (ui_create_window(title)) |
145 |
{ |
{ |
146 |
rdp_main_loop(); |
rdp_main_loop(); |