aboutsummaryrefslogtreecommitdiffstats
path: root/common/network/TcpSocket.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Revert IPv6 listening supportPierre Ossman2014-12-081-193/+41
| | | | | | | | | | | | | | | There were too many problems found so drop this functionality on the stable branch. It will be revisited for the next release. This reverts commit 4561f7e9c63c6ca2859da9b9fa75f64a1a8c2a81. This reverts commit 6abf3f4c87a0309d5e7d436e4b72d26a08631ebf. This reverts commit 820c0ceb2ed92080e8d76d50b78ba01bd264baef. This reverts commit 698371a65002c8785c34481635044fddc217d3f1. This reverts commit 6ae42df65141ccb49c875bda45b8f5ae9fa60c28. This reverts commit f1665ac7fbff068ffc2c2f3f110645609b73806c. This reverts commit 14263e17e425d1bca7e99d4ddfca1ace3bae0ca7. This reverts commit 07cd2298dcbf7da8db22d630cb84c0216da30ea1. This reverts commit 8e101704c32c47654d7453f5bde42d8d0c8cc160.
* Fix setsockopt() call on WindowsPierre Ossman2014-11-191-1/+1
| | | | They use char* rather than void*, requiring a cast here.
* Protect IPv6 address strings with []Pierre Ossman2014-11-191-3/+7
| | | | | This is the format we support when converting a string to an address, so it makes sense to use them the other way around.
* Don't assume that it's IPv4 just because it's not IPv6Pierre Ossman2014-11-191-31/+32
| | | | | There might be more protocols in the future, and we might also misdetect things depending on varying IPv6 functions being missing.
* inet_ntoa() want's the address directly, not a pointer to itPierre Ossman2014-11-191-1/+1
|
* TcpSocket: IPv6 handling throughout (#68).Tim Waugh2014-11-171-19/+100
|
* Added more #ifdefs for IPv6.Tim Waugh2014-11-171-1/+11
|
* IPv6 loopback support too.Tim Waugh2014-11-121-8/+21
|
* Add IPv6 support (#68).Tim Waugh2014-11-121-17/+60
|
* Remove a lot of platform compatibilty stuffPierre Ossman2014-07-071-1/+0
| | | | It's either not used, or no longer relevant.
* Windows lacks the IN6_ARE_ADDR_EQUAL macro, so define it ourselvesPierre Ossman2012-12-131-0/+5
| | | | | | | when necessary. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5018 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Expose Linux' cork functionality which allows us to aggregate TCP data in aPierre Ossman2011-11-081-0/+11
| | | | | | | controlled manner. Unfortunately there is no equivalent for Windows. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4781 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Windows actually has socklen_t, it's just that it is in a special header.Pierre Ossman2011-03-081-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4327 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Using a fixed port range with -via can cause a race condition between ↵DRC2011-02-211-10/+11
| | | | | | multiple vncviewer instances, whereby one instance calls bind() and finds the port to be free, then another instance calls bind() and finds the same port to be free, because the first instance hasn't started the SSH tunnel on it yet. This patch works around the issue by using ephemeral ports. All known modern O/S's increment the ephemeral port number by 1 after bind(), so the port is effectively "reserved" after bind(), and this prevents another vncviewer instance from trying to reserve the same port. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4303 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Do a generic check for inet_aton instead of just assuming that only Win32 hasPierre Ossman2010-02-121-2/+2
| | | | | | | the problem. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3982 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Add new "-i" and "-interface" parameters to Xvnc. Now Xvnc is ableAdam Tkac2010-02-051-6/+19
| | | | | | | to listen on specific interface. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3963 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Cleanup] Remove unused Socket::getMyAddress and Socket::getMyEndpoint ↵Adam Tkac2009-12-211-26/+0
| | | | | | functions. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3930 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Fix crash in TcpSocket::sameMachine for IPv6 connections (alan dot ↵Adam Tkac2009-11-121-5/+19
| | | | | | coopersmith at sun dot com) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3918 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Bugfix] Pass correct address length to connect(2) call (alan dot ↵Adam Tkac2009-10-301-1/+1
| | | | | | | | | coopersmith at sun dot com) Reference: http://www.mail-archive.com/tigervnc-devel@lists.sourceforge.net/msg00449.html git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3917 3789f03b-4d11-0410-bbf8-ca57d06f2519
* - use unix/configure.ac as top-level configure.ac baseAdam Tkac2009-09-041-2/+2
| | | | | | | | - create stub top-level Makefile.am - make common/ subtree compilable git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/unified_buildsys@3892 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Revert previous commit (r3889). Windows code has to be cleaned before thisAdam Tkac2009-09-041-7/+7
| | | | | | | change. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3890 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Replace rfb::strDup by safe_strdup and remove rfb::strFree in favor of free()Adam Tkac2009-09-041-7/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3889 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Layout] Added os/net.[ch]. They will include wrappers for missing IPv6Adam Tkac2008-12-101-11/+9
| | | | | | | | | | capabilities and should hide common networking related differences between OSs [Port] Implement IPv4-only version of inet_ntop for OSs which doesn't have it git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3369 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Portability] Implemented snprintf() function to support old compilersAdam Tkac2008-12-031-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3290 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Define VNC_SOCKLEN_T if not defined - needed for Visual Studio build. Peter Åstrand2008-12-021-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3279 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Cleanup] Removed unneeded else branch in TcpSocket constructorAdam Tkac2008-11-181-2/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3184 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Development] Basic IPv6 support to viewer.Adam Tkac2008-11-141-33/+93
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3169 3789f03b-4d11-0410-bbf8-ca57d06f2519
* [Cleanup] Handle system dependent defines through autoheader & common-config.hAdam Tkac2008-10-061-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2890 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added some missing #includes whose prevent build source with gcc 4.3Adam Tkac2008-03-191-0/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2431 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Migrating to new directory structure adopted from the RealVNC's source tree. ↵Constantin Kaplinsky2006-05-251-0/+499
More changes will follow. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@589 3789f03b-4d11-0410-bbf8-ca57d06f2519