Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rdesktop.cpp File Reference

#include <unistd.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <errno.h>
#include "rdesktop.h"
#include <openssl/md5.h>

Include dependency graph for rdesktop.cpp:

Go to the source code of this file.

Functions

void ui_main_loop (void)
void unimpl (char *format,...)
void * xmalloc (int size)
void * xrealloc (void *oldmem, int size)
void xfree (void *mem)
void error (char *format,...)
void warning (char *format,...)
void generate_random (uint8 *random)
int load_licence (unsigned char **data)
void save_licence (unsigned char *data, int length)

Variables

int g_argc
char ** g_argv
char title [32] = ""
char username [16] = "j"
char hostname [16] = "sharp"
char keymapname [16]
int keylayout = 0x409
int g_width = 800
int g_height = 600
int tcp_port_rdp = TCP_PORT_RDP
int server_bpp = 8
int win_button_size = 0
BOOL bitmap_compression = True
BOOL sendmotion = True
BOOL orders = True
BOOL encryption = True
BOOL desktop_save = True
BOOL fullscreen = False
BOOL grab_keyboard = True
BOOL hide_decorations = False
BOOL owncolmap


Function Documentation

void error char *  format,
  ...
 

Definition at line 110 of file rdesktop.cpp.

void generate_random uint8 random  ) 
 

Definition at line 122 of file rdesktop.cpp.

References md5(), MD5_Final(), MD5_Init(), MD5_Update(), and NULL.

Referenced by sec_process_crypt_info().

int load_licence unsigned char **  data  ) 
 

Definition at line 159 of file rdesktop.cpp.

References hostname, NULL, and xmalloc().

Referenced by licence_process_demand().

void save_licence unsigned char *  data,
int  length
 

Definition at line 185 of file rdesktop.cpp.

References hostname, i, in_uint16, in_uint32, len, NULL, stream::p, Opie::Core::perror(), printf, STRNCPY, write(), xmalloc(), and Opie::MM::y.

Referenced by licence_process_issue().

void ui_main_loop void   ) 
 

void unimpl char *  format,
  ...
 

Definition at line 71 of file rdesktop.cpp.

Referenced by bitmap_decompress(), licence_process(), process_data_pdu(), process_orders(), process_secondary_order(), process_update_pdu(), rdp_main_loop(), sec_parse_crypt_info(), and sec_process_mcs_data().

void warning char *  format,
  ...
 

Definition at line 116 of file rdesktop.cpp.

void xfree void *  mem  ) 
 

Definition at line 103 of file rdesktop.cpp.

Referenced by cache_put_text(), licence_process_demand(), main(), QMyMainWindow::paintEvent(), process_bitmap_updates(), process_bmpcache(), process_colcache(), process_raw_bmpcache(), sec_connect(), ui_desktop_save(), ui_destroy_bitmap(), ui_destroy_glyph(), and ui_screenblt().

void* xmalloc int  size  ) 
 

Definition at line 77 of file rdesktop.cpp.

References error(), and NULL.

Referenced by cache_put_text(), load_licence(), QMyMainWindow::paintEvent(), process_bitmap_updates(), process_bmpcache(), process_colcache(), process_raw_bmpcache(), save_licence(), sec_connect(), tcp_connect(), QMyScrollView::timerEvent(), ui_create_bitmap(), ui_create_glyph(), ui_desktop_save(), and ui_screenblt().

void* xrealloc void *  oldmem,
int  size
 

Definition at line 90 of file rdesktop.cpp.

References error(), and NULL.

Referenced by tcp_init(), and tcp_recv().


Variable Documentation

BOOL bitmap_compression = True
 

Definition at line 59 of file rdesktop.cpp.

Referenced by rdp_out_bitmap_caps().

BOOL desktop_save = True
 

Definition at line 63 of file rdesktop.cpp.

Referenced by rdp_out_order_caps().

BOOL encryption = True
 

Definition at line 62 of file rdesktop.cpp.

Referenced by rdp_init(), rdp_init_data(), rdp_send(), rdp_send_data(), rdp_send_logon_info(), sec_connect(), sec_out_mcs_data(), and sec_recv().

BOOL fullscreen = False
 

Definition at line 64 of file rdesktop.cpp.

Referenced by QMyMainWindow::MemuClicked(), OwnerDlg::OwnerDlg(), PasswdDlg::PasswdDlg(), PinDlg::PinDlg(), Opie::Security::SecOwnerDlg::SecOwnerDlg(), QMyScrollView::timerEvent(), and QMyMainWindow::timerEvent().

int g_argc
 

Definition at line 45 of file rdesktop.cpp.

char** g_argv
 

Definition at line 46 of file rdesktop.cpp.

int g_height = 600
 

Definition at line 55 of file rdesktop.cpp.

int g_width = 800
 

Definition at line 53 of file rdesktop.cpp.

BOOL grab_keyboard = True
 

Definition at line 65 of file rdesktop.cpp.

BOOL hide_decorations = False
 

Definition at line 66 of file rdesktop.cpp.

char hostname[16] = "sharp"
 

Definition at line 50 of file rdesktop.cpp.

int keylayout = 0x409
 

Definition at line 52 of file rdesktop.cpp.

Referenced by sec_out_mcs_data().

char keymapname[16]
 

Definition at line 51 of file rdesktop.cpp.

BOOL orders = True
 

Definition at line 61 of file rdesktop.cpp.

Referenced by CSoundFile::ReadAMS(), and CSoundFile::ReadAMS2().

BOOL owncolmap
 

Definition at line 78 of file qtwin.cpp.

BOOL sendmotion = True
 

Definition at line 60 of file rdesktop.cpp.

int server_bpp = 8
 

Definition at line 57 of file rdesktop.cpp.

int tcp_port_rdp = TCP_PORT_RDP
 

Definition at line 56 of file rdesktop.cpp.

Referenced by tcp_connect().

char title[32] = ""
 

Definition at line 48 of file rdesktop.cpp.

Referenced by OJanusWidget::addPageWidget(), DummyPlugin::authenticate(), BluepingPlugin::authenticate(), Wellenreiter::channelHopped(), createVObject(), OContactAccessBackend_VCard::createVObject(), Opie::OPimContactAccessBackend_VCard::createVObject(), fileviewer(), ztxt::getbkmklist(), input(), WordGame::loadRules(), myMessageBox(), AudioWidget::playFile(), mainWindowWidget::refreshList(), Qt3::QTextDocument::setRichTextInternal(), ConWindow::startClock(), and SnakeGame::welcomescreen().

char username[16] = "j"
 

Definition at line 49 of file rdesktop.cpp.

int win_button_size = 0
 

Definition at line 58 of file rdesktop.cpp.


Generated on Sat Nov 5 17:04:12 2005 for OPIE by  doxygen 1.4.2