aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
Commit message (Collapse)AuthorAgeFilesLines
...
* Cygwin nxcomp: Use Cygwin un.hMike DePaulo2017-03-292-7/+2
| | | | | Cygwin has modified it over the years. Fixes FTBFS #394
* nxcomp/ChannelEndPoint.cpp: we're not really testing for a character, but a ↵Mihai Moldovan2017-03-091-1/+1
| | | | | | pointer. Fixes: ArcticaProject/nxlibs#389.
* nxcomp/Loop.cpp: Allow nx/nx:<disp> as DISPLAY variable (i.e. an empty nx/nx ↵Mike Gabriel2017-03-021-1/+2
| | | | options string.
* nxcomp/Loop.cpp: Ignore, options= nx/nx parameter, if file options path ↵Mike Gabriel2017-03-021-1/+1
| | | | | | starts with /dev/, /proc/, or /sys/. Partially resolved ArcticaProject/nx-libs#51.
* nxcomp: Fix artifacts in copyright headers.Mike Gabriel2016-12-203-11/+0
|
* Make nxagent only bind to loopback when requestedVadim Troshchinskiy2016-12-141-4/+8
|
* Fix reversed logic in acceptHost settingVadim Troshchinskiy2016-12-131-2/+2
|
* add .gitignore filesUlrich Sibiller2016-11-171-0/+2
|
* nxcomp: remove unused Utils.cppUlrich Sibiller2016-11-021-43/+0
|
* Add description of NX_SLAVE_CMD to man and helpVadim Troshchinskiy2016-10-281-0/+7
|
* Slave channel implementationVadim Troshchinskiy2016-10-283-34/+156
| | | | | | | | When enabled and a connection is made to the port, launches the process specified in NX_SLAVE_CMD on the other side, and connects stdin and stdout to the socket. This is used for VM/client and client/VM communication.
* Loop.cpp: Fix output of SetCore()Ulrich Sibiller2016-10-201-3/+3
|
* nxcomp/{Client|}Proxy.cpp: Typo fix in error messages.Mike Gabriel2016-10-132-6/+6
|
* nxcomp: Fix typo in usage message.Ulrich Sibiller2016-10-131-1/+1
|
* Fix nxproxy hostname parsing.Vadim Troshchinskiyddd2016-10-071-3/+3
| | | | | Fixes ArcticaProject/nx-libs#207 Closes ArcticaProject/nx-libs#216
* Check if unixPath is NULL before accessing it; this fixes crashing of ↵Vadim Troshchinskiy2016-10-071-1/+1
| | | | | | | nxagent when TEST is enabled. Fixes ArcticaProject/nx-libs#217. Closes ArcticaProject/nx-libs#218.
* nxcomp/Loop.cpp: We have PrintVersionInfo(), why not use it? Use endl ↵Mike Gabriel2016-08-261-6/+9
| | | | instead of \n for EOLs when streaming application's preamble to stderr.
* nxcomp/Loop.cpp: Mention DXPC copyright holders on application (i.e. ↵Mike Gabriel2016-08-261-0/+3
| | | | nxproxy) start-up.
* nxcomp/Loop.cpp: We have GetCopyrightInfo() in Misc.cpp, so why not use it? ↵Mike Gabriel2016-08-241-2/+2
| | | | Also: point to ArcticaProject/nx-libs namespace on Github for further information.
* nxcomp/Misc.cpp: Display new list of copyright holders when launching ↵Mike Gabriel2016-08-241-8/+16
| | | | nxproxy / nxagent.
* nxcomp/*.c: Update copyright headers, use new list of copyright holders like ↵Mike Gabriel2016-08-242-14/+30
| | | | for the .cpp files.
* nxcomp/Loop.cpp: Refer to Github namespace of Arctica Project as location to ↵Mike Gabriel2016-08-241-1/+1
| | | | | | search for software updates. Fixes ArcticaProject/190
* {nx-X11/programs/Xserver/hw/nxagent/{Args.c,Options.{c,h}},nxcomp/{Loop,Misc ↵Mihai Moldovan2016-07-282-2/+5
| | | | }.cpp}: add tolerancechecks parameter as an nx/nx option and ReconnectTolerance as an nxagentOption.
* Per-file copyright notices: Update copyright information in file headers ↵Mike Gabriel2016-07-06229-1614/+3464
| | | | that NoMachine placed there own copyright statement in.
* nxcomp/Misc.cpp: The clipboard nx/nx option is a string option, not int.Mike Gabriel2016-07-051-1/+1
|
* nxcomp licensing: Move README.on-retroactive-DXPC-license to doc/nxcomp/ folder.Mike Gabriel2016-07-051-269/+0
|
* NoMachine documentation files: Move to doc/_attic_/ folder.Mike Gabriel2016-07-053-3820/+0
|
* LICENSE files: Have a main LICENSE file and one for nxcomp in the project's ↵Mike Gabriel2016-07-051-90/+0
| | | | | | base folder. Drop other LICENSE files added by NoMachine scattered all over the code tree.
* Drop multiple COPYING files contaning the GPL-2 license text.Mike Gabriel2016-07-051-339/+0
| | | | One COPYING file in the project's base folder is sufficient.
* nxcomp/Loop.cpp: Add Unix file socket support for proxy <-> proxy connection.Mike Gabriel2016-07-043-222/+607
|
* merge code paths depending on acceptHost being ""Salvador Fandino2016-07-041-11/+5
|
* remove now unused function ParseListenOptionSalvador Fandino2016-07-041-20/+0
|
* rewrite WaitForRemote to build on top of ListenConnectionTCPSalvador Fandino2016-07-041-61/+2
|
* remove unused listenHost parameterSalvador Fandino2016-07-041-19/+3
|
* Remove work around for OS/X that was doing nothingSalvador Fandino2016-07-041-24/+0
| | | | | | Remove an old work around that's not needed anymore. Tested on OS/X 10.10 for x86.
* Simplify ParseListenOptionSalvador Fandino2016-07-041-12/+4
| | | | | | Merge code paths. Use GetHostAddress to resolve the target host address instead of inet_aton.
* rewrite SetupUnixSocket to use ListenConnectionUnixSalvador Fandino2016-07-041-70/+20
|
* Rework SetupTcpSocket to use ListenConnectionTCPSalvador Fandino2016-07-041-66/+1
|
* OPTFLAGS: Properly propagate build option flags to nxcomp{,ext,shad} and the ↵Mike Gabriel2016-07-012-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nx-X11 build scripts. Note: - The "normal" way to inject CFLAGS (and CPPFLAGS) into nx-X11 builds is copying those options over into the variable CDEBUGFLAGS. - LDFLAGS have to be handed to nx-X11 via LOCAL_LDFLAGS. This change also includes a slight change in the nx-X11 build order. Old build order: Main Makefile: - [...] - libNX_X11 + implicitly building nxcomp + implicitly building nxcompext - [...] - nxagent + implicitly building nxcompshad - [...] New build ordner: Main Makefile: - [...] - nxcomp - setup nx-X11 build env + cd nx-X11 && make BuildEnv - nx-X11/lib/* - nxcompext - nxcompshad - [...] - nxagent - [...] Fixes ArcticaProject/nx-libs#141 Fixes X2GoBTS#84
* nx-X11/config/{imake,makedepend}: Use system-wide available imake and ↵Mike Gabriel2016-06-301-10/+0
| | | | makedepend tools.
* {nx-X11/programs/Xserver/hw/nxagent/{{Args,Handlers,Image,Options}.c,Options ↵Mihai Moldovan2016-06-172-2/+4
| | | | .h},nxcomp/{Loop,Misc}.cpp}: add configurable sleep delay if session is suspended.
* nx-X11/programs/Xserver: Include nxcomp{,ext,shad} headers like one would do ↵Mike Gabriel2016-06-131-1/+1
| | | | with system-wide shared libraries.
* nxcomp/Makefile.in: Only install MD5.h, NX.h, NXalert.h, NXpack.h, NXproto.h ↵Mike Gabriel2016-06-131-3/+5
| | | | | | | and NXvars.h as publicly available header files. * Also adapt debian/libxcomp-dev.install.in accordingly. * Also adapt nx-libs.spec accordingly.
* Fix debugging function for Loop.cpp. getDebugSpec was replaced by << operand ↵Nito Martinez2016-05-311-6/+6
| | | | in ChannelEndPoint.{h|cpp}, fixes #130
* display version number in nxcomp log, fixes #127Nito Martinez2016-05-312-3/+2
|
* Provide support for channel endpoints being UNIX file sockets in addition to ↵Salvador Fandino2016-04-2710-315/+634
| | | | being TCP/IP sockets.
* nxcomp: Rephrase comment in previous commit.Mike Gabriel2016-04-271-3/+3
|
* Clean up compiler warnings in nxcompFernando Carvajal2016-04-275-61/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit removes several warnings in nxcomp related to unused but set variables. It also replaces tempnam function with the more secure one mkstemp and there has been removed another warning related to setgid and setuid returning values not being checked. So these were the compiler warnings in nxcomp that have been fixed: Loop.cpp: In function ‘int ParseRemoteOptions(char*)’: Loop.cpp:9423:7: warning: variable ‘hasLimit’ set but not used [-Wunused-but-set-variable] int hasLimit = 0; ^ Loop.cpp:9424:7: warning: variable ‘hasRender’ set but not used [-Wunused-but-set-variable] int hasRender = 0; ^ Loop.cpp:9425:7: warning: variable ‘hasTaint’ set but not used [-Wunused-but-set-variable] int hasTaint = 0; ^ Loop.cpp:9427:7: warning: variable ‘hasStrict’ set but not used [-Wunused-but-set-variable] int hasStrict = 0; ^ Loop.cpp:9428:7: warning: variable ‘hasShseg’ set but not used [-Wunused-but-set-variable] int hasShseg = 0; ^ ServerChannel.cpp: In member function ‘virtual int ServerChannel::handleWrite(const unsigned char*, unsigned int)’: ServerChannel.cpp:2132:9: warning: variable ‘hit’ set but not used [-Wunused-but-set-variable] int hit; ^ Proxy.o: In function `Proxy::handleSaveAllStores(char const*) const': Proxy.cpp:(.text+0x2cac): warning: the use of `tempnam' is dangerous, better use `mkstemp' Pipe.cpp: In function ‘FILE* Popen(char* const*, const char*)’: Pipe.cpp:240:23: warning: ignoring return value of ‘int setgid(__gid_t)’, declared with attribute warn_unused_result [-Wunused-result] setgid(getgid()); ^ Pipe.cpp:241:23: warning: ignoring return value of ‘int setuid(__uid_t)’, declared with attribute warn_unused_result [-Wunused-result] setuid(getuid()); ^ There was also a hidden problem in the way Proxy::handleSaveAllStores was checking for an error in the returning value from the call to the virtual method handleSaveAllStores of the specific proxy class really being used (ClientProxy or ServerProxy). Former code was considering the value 0 as the returning value in case of an error whereas both subclasses return the value -1 when there is an error in their handleSaveAllStores method. This bug has been fixed in this commit taking advantage of the modification that was already being made to this method in order to replace tempnam function with the more secure one mkstemp. Fixes: ArcticaProject/nx-libs#103
* Fix copyright notice in nxcomp/Version.cSalvador Fandino2016-04-201-19/+10
| | | | | | It was GPL3 instead of GPL2! Fixes ArcticaProject/nx-libs#112
* Remove TextCompressor class and files from nxcompFernando Carvajal2016-04-157-143/+0
| | | | | | | | | | | | This commit removes TextCompressor class references from ClientCache and ServerCache as it's no longer used after removing old protocol's compatibility code from nxcomp. It also removes the attribute textCache from both classes as it's no longer used either. Finally the header and source files associated with the TextCompressor class are also deleted and removed from the compilation process. Refs: ArcticaProject/nx-libs#108