summaryrefslogtreecommitdiffstats
path: root/libvncclient/rfbproto.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless comparisons that always evaluate to false.Christian Beier2011-03-171-6/+1
| | | | | There can not be more than 255 security types and MSLogon is RFB 3.6 only.
* Fix (most) MinGW32 compiler warnings.Christian Beier2011-03-171-0/+2
|
* Let libvncclient build with gcrypt for MinGW32 builds.Christian Beier2011-03-121-0/+4
| | | | Signed-off-by: Christian Beier <dontmind@freeshell.org>
* Add ARD (Apple Remote Desktop) security type supportVic Lee2011-01-311-0/+216
| | | | | Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Christian Beier <dontmind@freeshell.org>
* Put files used by both libs into a 'common' dir.Christian Beier2011-01-251-2/+2
| | | | | | | | | No functional changes. All files used by _both_ libvncserver and libvncclient are put into a 'common' directory and references from other files as well as Autotools and CMake build systems are updated. Signed-off-by: Christian Beier <dontmind@freeshell.org>
* libvnc[server|client]: implement xvp VNC extension.Christian Beier2010-11-021-0/+52
| | | | | | | This implements the xvp VNC extension, which is described in the community version of the RFB protocol: http://tigervnc.sourceforge.net/cgi-bin/rfbproto It is also mentioned in the official RFB protocol.
* Only define strncasecmp to _strnicmp when using MS compiler.Christian Beier2010-10-211-5/+1
| | | | | | | Redefining strncasecmp to _strnicmp makes libvncclient hang forever in SetFormatAndEncodings() on Windows when built with MinGW64. Reported by Tobias Doerffel <tobias.doerffel@gmail.com>, thanks!
* IP QoS support in libvncclient.Christian Beier2010-09-291-0/+3
| | | | | | | | | | This enables setting the DSCP/Traffic Class field of IP/IPv6 packets sent by a client. For example starting a client with -qosdscp 184 marks all outgoing traffic for expedited forwarding. Implementation for Win32 is still a TODO, though. See http://betelco.blogspot.com/2009/03/dscp-marking-under-windows-at.html for an overview of the Win32 QoS API mess...
* Fix MinGW32 compilation with libjpeg.Christian Beier2010-09-061-0/+3
| | | | | | | | | MinGW32 (or more exactly, a rpcndr.h file included by winsock2.h) typedefs a 'boolean' type that jmorecfg.h included by jpeglib.h also tries to typedef. So, tell the jpeg headers. Closes: 3007302
* libvncclient: add ipv6 supportVic Lee2010-07-081-13/+25
| | | | | | | | [jes: pulled the "host" declarations into the conditionally compiled blocks where that variable is used. Also fixed non-IPv6 connections.] Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* libvncclient: rfbResizeFrameBuffer should also set updateRect.runge2010-05-081-0/+9
|
* Fix compilation without TLSJohannes Schindelin2010-03-131-1/+10
| | | | Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Add UltraVNC Repeater support in libvncclientVic Lee2010-01-161-0/+45
| | | | | | | [jes: adjusted coding style, made sure port is initialized correctly] Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Add support for viewers to select security types on demandVic Lee2010-01-011-6/+53
| | | | | Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Fix version checking (>=3.8) for rfbVncAuthOK confirmation when no password ↵Vic Lee2009-12-221-2/+4
| | | | | | | | | | | | required It seems that vino does not send AuthOK when there is no password with anonymous TLS, and it seems that vino is the only <3.8 VNC server that handles anonymous TLS at all, so let's not wait for the packet that will never come. Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Fix checks for socket values, 0 is a legal value.Christian Beier2009-11-111-1/+1
| | | | | | | | | | To make this work, we also have to initialize sockets to a default value of -1. Also close a client listen socket if it's open. Signed-off-by: Christian Beier <dontmind@freeshell.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Merge branch 'VeNCrypt'Johannes Schindelin2009-11-021-91/+324
|\
| * Add MSLogon security typeVic Lee2009-11-021-8/+116
| | | | | | | | | | Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
| * Add VeNCrypt support in libvncclientVic Lee2009-10-021-1/+74
| | | | | | | | Signed-off-by: Vic Lee <llyzs@163.com>
| * Add anonymous TLS support in libvncclientVic Lee2009-10-021-91/+143
| | | | | | | | Signed-off-by: Vic Lee <llyzs@163.com>
* | libvncclient: Add FinishedFrameBufferUpdate callbackAlexander Dorokhine2009-10-301-0/+3
| | | | | | | | | | | | When working on a program which searches the display for some image, one does not want to search again without getting an FB update. Add a callback to make this possible.
* | Some broken build environments treat fprintf(fh, buf) as a fatal error...runge2009-10-071-1/+1
| |
* | mingw32 crosscompile fixes.Christian Beier2009-10-021-0/+2
|/ | | | | | | | | | | SOCKET is redefined in winsock2.h so #undef it where winsock2.h is included. The changes in rfbproto.c circumvent crosscompiler errors like 'S_IFMT' undeclared ...', the Makefile.am changes avoid building linux specific stuff for a win32 host target. Also added configure option to specify sdl-config. Signed-off-by: Christian Beier <dontmind@freeshell.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Fix IsUnixSocket()Christian Beier2009-10-021-1/+1
| | | | | | | | This is a pure functionality fix: according to its manpage, stat() returns 0 on success. Checking for a return value of zero fixes incorrect results of IsUnixSocket(). Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* Fix bug for logging unsupported security typesVic Lee2009-09-271-6/+26
| | | | Signed-off-by: Vic Lee <llyzs@163.com>
* Fix bug for VNC Server version 4Vic Lee2009-09-271-1/+4
| | | | Signed-off-by: Vic Lee <llyzs@163.com>
* libvncclient: Unix sockets support by Ben KlopfensteinBen Klopfenstein2009-05-121-5/+24
| | | | Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* ZYWRLE patch for libvncclient (thanks Noriaki Yamazaki)dscho2008-02-041-3/+23
| | | | | | | | | | | | | | | | Highlite: * use qualityLevel/zlib_buffer. No new variable is needed. * Change coding style to recursive fashion. * Change meaning of qualityLevel== 9 for easy calc zywrle_level: old:zywrle_level== 1 new:disable ZYWRLE(same as ZRLE) so, we should not use this value for compatible reason. * Color mode handling isn't complete. I provided and checked 16 bit colors(RGB555,RGB565) and some color mode of 32 bit colors for little endian mode. we must make and check 24 bit colors and big endian mode. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* LibVNCClient: if the GotRect hook is set, override default op.dscho2007-08-141-2/+2
|
* LibVNCClient: some users do not want to get whole-screen updates; introduce ↵dscho2007-02-011-2/+3
| | | | client->updateRect for that
* libvncclient: add GotCursorShape() and GotCopyRect(); x11vnc dep on libvncclientrunge2007-01-311-3/+28
|
* make cut text handling using a hookdscho2006-09-111-11/+9
|
* RFB 3.8 clients are well informedsteven_carr2006-06-051-36/+56
|
* The great UltraVNC Compatibility Commitsteven_carr2006-05-151-30/+336
|
* Server Capability Encodingssteven_carr2006-05-041-24/+83
| | | | | | | rfbEncodingSupportedEncodings - What encodings are supported? rfbEncodingSupportedMessages - What message types are supported? rfbEncodingServerIdentity - What is the servers version string? ie: "x11vnc: 0.8.1 lastmod: 2006-04-25 (LibVNCServer 0.9pre)"
* UltraVNC with scaling, will send rectangles with a zero W or Hsteven_carr2006-05-041-3/+8
| | | | | | We need to process the rectangle (especially if it a type that contains subrectangles or any kind of compression). UltraVNC should be fixed to prevent these useless rectangles from being sent.
* Client side support for PalmVNC/UltraVNC 'Server Side Scaling'steven_carr2006-05-041-1/+48
|
* Ultra Encoding added. Tested against UltraVNC V1.01steven_carr2006-05-021-16/+76
|
* CopyRectangle() BPP!=8 bug fixedsteven_carr2006-05-021-1/+1
|
* libvncclient: support changing of framebuffer size; make SDLvncviewer use itdscho2006-04-281-15/+27
|
* add KeyboardLedState extensiondscho2006-03-281-0/+21
|
* fix deadlock from rfbReleaseExtensionIterator(), fix no libz/libjpeg ↵runge2005-11-251-0/+4
| | | | builds, disable tightvnc-filetransfer if no libpthread, add --without-pthread option, rm // comments, set NAME_MAX if not defined, x11vnc: throttle load if fb update requests not taking place.
* add an extension mechanism for LibVNCClient, modify the client data handlingdscho2005-10-061-15/+86
| | | | | so that more than one data structure can be attached, and add an example to speak the client part of the back channel.
* implement ZRLE decodingdscho2005-05-241-0/+52
|
* make zlib and tight handling thread safe (static -> rfbClient)dscho2005-05-231-129/+0
|
* hide strict ansi stuff if not explicitely turned on; actually use the ↵dscho2005-05-181-0/+2
| | | | socklen_t test from configure.ac
* ANSIfy, fix some warnings from Linus' sparsedscho2005-05-151-11/+13
|
* support MinGW32!dscho2004-12-011-0/+2
|
* move read buffer to rfbClient structure (thread safety); make rfbClientLogdscho2004-10-161-3/+7
| | | | overrideable
* global structures/functions should have "rfb", "sra" or "zrle" as prefix,dscho2004-08-301-10/+10
| | | | while structure members should not