ReactOS 0.4.16-dev-292-gbbdcc14
|
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/socket.h>
#include "../rdesktop.h"
#include "vnc.h"
#include <errno.h>
#include <rfb/rfbregion.h>
Go to the source code of this file.
Macros | |
#define | BITSPERBYTES 8 |
#define | TOBYTES(bits) ((bits)/BITSPERBYTES) |
#define | FIRST_MODIFIER XK_Shift_L |
#define | LAST_MODIFIER XK_Hyper_R |
#define | DO_GLYPH(ttext, idx) |
#define | GETPIXEL(buf, x, y) (((uint8_t*)(buf->data))[(x)+((y)*buf->linew)]) |
#define | SETPIXEL(buf, x, y, p) (((uint8_t*)(buf->data))[(x)+((y)*buf->linew)] = (uint8_t)p) |
Variables | |
int | rfbClientSocket = 0 |
int | g_width |
int | g_height |
int | keylayout |
BOOL | sendmotion |
int | rfb_port = 5923 |
int | defer_time = 5 |
static rfbScreenInfoPtr | server = NULL |
static vncBuffer * | frameBuffer = NULL |
static uint8_t | reverseByte [0x100] |
BOOL | g_enable_compose = False |
int | g_display = 0 |
BOOL | owncolmap = False |
BOOL | enable_compose = False |
int | mouseLookup [3] |
int | clipX |
int | clipY |
int | clipW |
int | clipH |
static int | lastbuttons = 0 |
static BOOL | keystate [LAST_MODIFIER - FIRST_MODIFIER] |
char | g_title [] |
rfbPixelFormat | vnc_formats [] |
Definition at line 146 of file vnc.c.
Referenced by handle_special_keys(), reset_modifier_keys(), and ui_get_numlock_state().
void init_keyboard | ( | ) |
Definition at line 136 of file vnc.c.
Referenced by ui_create_window().
void rdp2vnc_connect | ( | char * | server, |
uint32 | flags, | ||
char * | domain, | ||
char * | password, | ||
char * | shell, | ||
char * | directory | ||
) |
Definition at line 226 of file vnc.c.
Referenced by main().
Definition at line 1349 of file vnc.c.
Referenced by process_update_pdu(), and rdp5_process().
Definition at line 571 of file vnc.c.
Referenced by process_data_pdu().
Definition at line 377 of file vnc.c.
Referenced by process_bmpcache(), process_bmpcache2(), process_raw_bmpcache(), pstcache_load_bitmap(), and ui_paint_bitmap().
HCOLOURMAP ui_create_colourmap | ( | COLOURMAP * | colours | ) |
Definition at line 528 of file vnc.c.
Referenced by process_colcache(), and process_palette().
HCURSOR ui_create_cursor | ( | unsigned int | x, |
unsigned int | y, | ||
int | width, | ||
int | height, | ||
uint8 * | mask, | ||
uint8 * | data | ||
) |
Definition at line 421 of file vnc.c.
Definition at line 499 of file vnc.c.
Referenced by process_fontcache(), and ui_patblt().
Definition at line 281 of file vnc.c.
Referenced by main(), rdp2vnc_connect(), and xwin_toggle_fullscreen().
Definition at line 945 of file vnc.c.
Referenced by process_desksave().
Definition at line 934 of file vnc.c.
Referenced by process_desksave().
Definition at line 577 of file vnc.c.
Referenced by process_destblt().
Definition at line 397 of file vnc.c.
Referenced by ui_destroy_glyph().
void ui_destroy_colourmap | ( | HCOLOURMAP | map | ) |
Definition at line 335 of file vnc.c.
Referenced by main(), rdp2vnc_connect(), and xwin_toggle_fullscreen().
void ui_draw_glyph | ( | int | mixmode, |
int | x, | ||
int | y, | ||
int | cx, | ||
int | cy, | ||
HGLYPH | glyph, | ||
int | srcx, | ||
int | srcy, | ||
int | bgcolour, | ||
int | fgcolour | ||
) |
Definition at line 782 of file vnc.c.
void ui_draw_text | ( | uint8 | font, |
uint8 | flags, | ||
int | mixmode, | ||
int | x, | ||
int | y, | ||
int | clipx, | ||
int | clipy, | ||
int | clipcx, | ||
int | clipcy, | ||
int | boxx, | ||
int | boxy, | ||
int | boxcx, | ||
int | boxcy, | ||
int | bgcolour, | ||
int | fgcolour, | ||
uint8 * | text, | ||
uint8 | length | ||
) |
Definition at line 863 of file vnc.c.
Definition at line 1354 of file vnc.c.
Referenced by process_update_pdu(), and rdp5_process().
Definition at line 760 of file vnc.c.
Referenced by process_line().
Definition at line 692 of file vnc.c.
Referenced by ui_triblt().
Definition at line 368 of file vnc.c.
Referenced by process_pointer_pdu(), and rdp5_process().
void ui_patblt | ( | uint8 | opcode, |
int | x, | ||
int | y, | ||
int | cx, | ||
int | cy, | ||
BRUSH * | brush, | ||
int | bgcolour, | ||
int | fgcolour | ||
) |
Definition at line 600 of file vnc.c.
Referenced by process_patblt(), and ui_triblt().
Definition at line 771 of file vnc.c.
Referenced by process_rect(), ui_destblt(), and ui_draw_text().
Definition at line 562 of file vnc.c.
Referenced by process_orders(), and ui_create_window().
Definition at line 1359 of file vnc.c.
Referenced by rdp_process_bitmap_caps().
Definition at line 674 of file vnc.c.
Referenced by process_screenblt().
Definition at line 342 of file vnc.c.
Referenced by tcp_recv().
void ui_set_colourmap | ( | HCOLOURMAP | map | ) |
Definition at line 547 of file vnc.c.
Referenced by process_colcache(), and process_palette().
Definition at line 493 of file vnc.c.
Referenced by process_system_pointer_pdu(), and rdp5_process().
void ui_triblt | ( | uint8 | opcode, |
int | x, | ||
int | y, | ||
int | cx, | ||
int | cy, | ||
HBITMAP | src, | ||
int | srcx, | ||
int | srcy, | ||
BRUSH * | brush, | ||
int | bgcolour, | ||
int | fgcolour | ||
) |
Definition at line 731 of file vnc.c.
void vncAndBlitFrom | ( | rfbScreenInfoPtr | s, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
vncBuffer * | src, | ||
int | srcx, | ||
int | srcy | ||
) |
Definition at line 1141 of file vnc.c.
Referenced by ui_memblt().
void vncCopyBlitFrom | ( | rfbScreenInfoPtr | s, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
vncBuffer * | src, | ||
int | srcx, | ||
int | srcy | ||
) |
Definition at line 1075 of file vnc.c.
Referenced by ui_desktop_restore(), ui_draw_glyph(), ui_memblt(), ui_paint_bitmap(), and ui_patblt().
void vncCopyBlitFromNoEncode | ( | rfbScreenInfoPtr | s, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
vncBuffer * | src, | ||
int | srcx, | ||
int | srcy | ||
) |
Definition at line 1025 of file vnc.c.
Referenced by vncCopyBlitFrom().
Definition at line 1170 of file vnc.c.
Referenced by ui_desktop_restore(), ui_destroy_bitmap(), ui_draw_glyph(), ui_paint_bitmap(), and vncNewCursor().
void vncDeleteColourMap | ( | rfbColourMap * | m | ) |
Definition at line 1333 of file vnc.c.
Referenced by ui_destroy_colourmap(), and vncSetColourMap().
Definition at line 1272 of file vnc.c.
Referenced by ui_desktop_save(), and ui_destblt().
void vncHideCursor | ( | ) |
Definition at line 85 of file vnc.c.
Referenced by vncAndBlitFrom(), vncCopyBlitFromNoEncode(), vncGetRect(), vncSetRect(), vncTransBlitFrom(), and vncXorBlitFrom().
Definition at line 154 of file vnc.c.
Referenced by ui_create_window().
Definition at line 198 of file vnc.c.
Referenced by ui_create_window().
Definition at line 990 of file vnc.c.
Referenced by ui_create_bitmap(), ui_create_glyph(), ui_desktop_restore(), ui_patblt(), vncDupBuffer(), and vncGetRect().
rfbColourMap * vncNewColourMap | ( | rfbScreenInfoPtr | s, |
int | n | ||
) |
rfbPixelFormat * vncNewFormat | ( | int | depth | ) |
void vncPrintStats | ( | ) |
void vncSetColourMap | ( | rfbScreenInfoPtr | s, |
rfbColourMap * | m | ||
) |
Definition at line 1341 of file vnc.c.
Referenced by ui_set_colourmap().
Definition at line 1322 of file vnc.c.
Referenced by ui_create_colourmap().
void vncSetCursor | ( | rfbScreenInfoPtr | s, |
rfbCursorPtr | c | ||
) |
Definition at line 1225 of file vnc.c.
Referenced by ui_create_glyph(), ui_draw_glyph(), and ui_patblt().
Definition at line 1232 of file vnc.c.
Referenced by ui_patblt(), and ui_rect().
void vncTransBlitFrom | ( | rfbScreenInfoPtr | s, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
vncBuffer * | src, | ||
int | srcx, | ||
int | srcy, | ||
int | bg | ||
) |
Definition at line 1082 of file vnc.c.
Referenced by ui_draw_glyph(), and ui_memblt().
Definition at line 102 of file vnc.c.
Referenced by ui_desktop_restore(), ui_draw_glyph(), ui_memblt(), ui_patblt(), ui_rect(), and ui_screenblt().
void vncXorBlitFrom | ( | rfbScreenInfoPtr | s, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
vncBuffer * | src, | ||
int | srcx, | ||
int | srcy | ||
) |
Definition at line 1112 of file vnc.c.
Referenced by ui_memblt(), and ui_patblt().
int clipH |
Definition at line 99 of file vnc.c.
Referenced by ui_reset_clip(), ui_set_clip(), and vncwinClipRect().
int clipW |
Definition at line 99 of file vnc.c.
Referenced by ui_reset_clip(), ui_set_clip(), and vncwinClipRect().
int clipX |
Definition at line 99 of file vnc.c.
Referenced by ui_reset_clip(), ui_set_clip(), and vncwinClipRect().
int clipY |
Definition at line 99 of file vnc.c.
Referenced by ui_reset_clip(), ui_set_clip(), and vncwinClipRect().
int defer_time = 5 |
Definition at line 72 of file vnc.c.
Referenced by ui_create_window(), and ui_select().
Definition at line 75 of file vnc.c.
Referenced by ui_create_window(), vncAndBlitFrom(), vncCopyBlitFromNoEncode(), vncGetRect(), vncSetRect(), vncTransBlitFrom(), and vncXorBlitFrom().
|
extern |
Definition at line 43 of file uimain.c.
Referenced by c2sy(), draw_cursor_under(), fill_rect(), get_pixel(), main(), param_connect(), parse_parameters(), redraw(), set_pixel(), ui_create_window(), ui_draw_text(), ui_main(), ui_reset_clip(), and ui_resize_window().
|
extern |
Referenced by ui_create_window().
|
extern |
Definition at line 42 of file uimain.c.
Referenced by accel_draw_box(), accel_fill_rect(), accel_screen_copy(), c2sx(), draw_cache_rects(), draw_cursor(), draw_cursor_under(), fill_rect(), get_pixel(), get_rect(), main(), param_connect(), parse_parameters(), redraw(), set_pixel(), ui_create_window(), ui_draw_text(), ui_main(), ui_memblt(), ui_reset_clip(), ui_resize_window(), and ui_screenblt().
|
extern |
|
static |
Definition at line 133 of file vnc.c.
Referenced by get_key_state(), init_keyboard(), and vncKey().
|
static |
Definition at line 128 of file vnc.c.
Referenced by vncMouse().
int mouseLookup[3] |
|
static |
Definition at line 76 of file vnc.c.
Referenced by ui_create_glyph(), ui_create_window(), and vncNewCursor().
int rfb_port = 5923 |
Definition at line 71 of file vnc.c.
Referenced by rdp2vnc_connect(), and ui_create_window().
int rfbClientSocket = 0 |
Definition at line 73 of file vnc.c.
Referenced by rdp2vnc_connect(), and ui_create_window().
|
extern |
Definition at line 74 of file vnc.c.
Referenced by addserver(), build_canonical_path(), build_path(), build_resource_string(), build_servername(), client_server(), collect_connections(), copy_servername_from_name(), create_netconn(), create_netconn_socket(), create_overlapped_pipe(), create_pipe_pair(), CreateStubFromTypeInfo(), data_client_status(), debugclient_AttachProcess(), debugclient_ConnectProcessServer(), debugclient_ConnectProcessServerWide(), debugclient_CreateProcess(), debugclient_CreateProcess2(), debugclient_CreateProcess2Wide(), debugclient_CreateProcessAndAttach(), debugclient_CreateProcessAndAttach2(), debugclient_CreateProcessAndAttach2Wide(), debugclient_CreateProcessAndAttachWide(), debugclient_CreateProcessWide(), debugclient_DisconnectProcessServer(), debugclient_EndProcessServer(), debugclient_GetRunningProcessDescription(), debugclient_GetRunningProcessDescriptionWide(), debugclient_GetRunningProcessSystemIdByExecutableName(), debugclient_GetRunningProcessSystemIdByExecutableNameWide(), debugclient_GetRunningProcessSystemIds(), DECLARE_INTERFACE_(), dispatch_create_stub(), dispatch_typelib_ps_CreateStub(), domain_matches(), event_redirect(), file_layout_read_thread(), file_layout_write_thread(), get_dnsserversearchorder(), get_server(), HTTP_DomainMatches(), HTTP_ResolveName(), HTTP_ShouldBypassProxy(), InternetGetSecurityInfoByURLW(), is_local_machine(), is_local_machineA(), is_local_machineW(), iso_connect(), iso_reconnect(), main(), mcs_connect(), mcs_connect_start(), mcs_reconnect(), MprAdminIsServiceRunning(), ncacn_pipe_name(), NETCON_secure_connect(), netconn_verify_cert(), NetStatisticsGet(), nfs41_server_addrs(), nfs41_server_deref(), nfs41_server_find_or_create(), nfs41_server_ref(), nfs41_superblock_for_fh(), SEALED_::OnRedirect(), open_http(), parse_path(), parse_resource(), parse_server_and_port(), path_SetServer(), PathIsUNCEx(), pnfs_data_server_client(), process_host_port(), process_redirect_pdu(), PSetupCreateMonitorInfo(), PSFactoryBuffer_CreateStub(), rdp2vnc_connect(), rdp_connect(), rdp_reconnect(), register_server(), RPCRT4_AllocBinding(), RPCRT4_BuildHttpFlowControlHeader(), rpcrt4_conn_tcp_handoff(), RPCRT4_CreateBindingA(), RPCRT4_CreateBindingW(), RPCRT4_CreateConnection(), RPCRT4_ParseHttpFlowControlHeader(), sec_connect(), sec_reconnect(), server_addref(), server_compare(), server_create(), server_free(), server_ref_locked(), server_release(), set_server_for_hostname(), SetUpListener(), should_bypass_proxy(), START_TEST(), tcp_connect(), tcp_socketpair(), tcp_socketpair_ovl(), test_authentication(), test_events(), test_file_info(), test_GetNamedPipeInfo(), test_NamedPipeHandleState(), test_overlapped_transport(), test_ReadFile(), test_readfileex_pending(), test_security_info(), test_tcp(), test_udp(), test_Win32_Process(), testAuth(), testSignSeal(), typelib_stub_init(), ui_bell(), ui_create_colourmap(), ui_create_cursor(), ui_create_window(), ui_desktop_restore(), ui_desktop_save(), ui_destblt(), ui_destroy_window(), ui_draw_glyph(), ui_line(), ui_memblt(), ui_move_pointer(), ui_paint_bitmap(), ui_patblt(), ui_rect(), ui_resize_window(), ui_screenblt(), ui_select(), ui_set_colourmap(), ui_set_cursor(), ui_set_null_cursor(), update_server(), vncHideCursor(), vncPrintStats(), wbem_locator_ConnectServer(), WDML_EventProc(), WDML_RemoveServer(), WinHttpConnect(), WinMGMTS_ParseDisplayName(), WTSEnumerateProcessesExA(), WTSEnumerateProcessesExW(), WTSEnumerateSessionsExA(), and WTSEnumerateSessionsExW().
rfbPixelFormat vnc_formats[] |
Definition at line 972 of file vnc.c.
Referenced by vncNewFormat().