aboutsummaryrefslogtreecommitdiff
path: root/src/socket.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-5/+23
|\|
| * Various improvements to UNIX socket support.•••- Allow replacing dead UNIX sockets on startup. - Allow setting the permissions of the UNIX socket. - Expand the UNIX socket path relative to the data directory. Gravatar Peter Powell2019-05-301-5/+12
| * Add irc::sockets::isunix for checking if a file is a UNIX socket.Gravatar Peter Powell2019-05-291-0/+11
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-02-151-5/+20
|\|
| * Fix erroneously limiting to the size of sa instead of sun_path.Gravatar Peter Powell2019-02-071-1/+1
| * Add irc::sockets::untosa() for creating AF_UNIX sockaddrs.•••Also fix an overly long albeit harmless memcpy when creating UNIX socket listeners. Thanks to @psychon for reporting this. Gravatar Peter Powell2019-02-071-6/+13
| * Don't allow invalid characters in UNIX listener paths.Gravatar linuxdaemon2019-02-061-0/+8
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-15/+15
|/
* Remove trailing whitespace from various source files.Gravatar Peter Powell2019-01-241-1/+1
* Fix conversion issues by replacing ConvToInt with ConvToNum<T>.•••The former was a thin wrapper around atol and brought with it all of the weird parsing logic of atol which is almost never what is actually wanted. It also almost never returned the numeric type which is actually wanted which can cause weird issues when casting. Gravatar Peter Powell2018-12-121-1/+1
* Fix some bugs in cidr_mask::str().•••- Fix a missing break statement causing unintentional fallthrough. - Cast the length to an int to avoid interpreting as a character. Gravatar Peter Powell2018-08-141-1/+2
* Fix building on Windows.Gravatar Peter Powell2018-07-241-1/+3
* Initial support for listening on UNIX socket endpoints.Gravatar Peter Powell2018-07-181-103/+203
* Add the family() member to the sockaddrs union.Gravatar Peter Powell2018-07-181-13/+18
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-4/+4
* Change FailedPortList to store a sockaddrs/int instead of string.Gravatar Peter Powell2017-09-121-1/+1
* Store the server endpoint as a sockaddrs in ListenSocket.Gravatar Peter Powell2017-09-121-4/+3
* Get rid of irc::sockets::satoap().•••This function is being misused in all but one scenario. It isn't really worth keeping IMO. Gravatar Peter Powell2017-09-121-7/+0
* Purge code for Windows XP and MSVC pre-2015.Gravatar Peter Powell2017-08-061-4/+4
* Remove InspIRCd::BindSocket()Gravatar Attila Molnar2014-08-041-52/+0
* Kill needless #includes in source filesGravatar Attila Molnar2014-06-141-2/+1
* Merge insp20Gravatar Attila Molnar2014-04-071-2/+0
|\
| * Fix various problems detected by Clang 3.4.•••- cidr.cpp: remove inverted_bits; unused since 9fad3ecb9215a0034bf407f192926b04cb5efaed. - cmd_stats.cpp: remove needless inversion and comparison to 0. - inspircd.cpp: remove needless comparison to 0. - socket.cpp: remove all_zero; unused since 03a1bf15b1da7643b237c22db1a478916a976ccf. Gravatar Peter Powell2014-02-111-2/+0
* | Change SocketEngine functions that do not require an instance to be staticGravatar Attila Molnar2014-02-081-3/+3
* | Remove whitespace and minor style changesGravatar Attila Molnar2014-01-231-1/+0
* | Split IOHook into IOHook and IOHookProvider•••Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established. Gravatar Attila Molnar2014-01-221-0/+2
* | Merge insp20Gravatar Attila Molnar2014-01-211-4/+10
|\|
| * Fix OOB error in sa2cidr()Gravatar Daniel Vassdal2014-01-171-4/+10
* | Rewrite irc::sockets::sockaddrs::str() completely.•••- Replace use of MAXBUF with INET_ADDRSTRLEN/INET6_ADDRSTRLEN. - Replace use of sprintf with InspIRCd::Format. Gravatar Peter Powell2013-06-061-13/+11
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-6/+6
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-6/+6
|/
* Fix more undefined behavior caused by referencing the returned buffer by std:...•••See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88 Gravatar attilamolnar2012-09-301-1/+1
* Fix bug #291 - fix rehashing bind tags not changing them between servers/clie...Gravatar Adam2012-09-121-0/+1
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+18
* Fix mis-implemented irc::sockets::cidr_mask::operator<Gravatar Daniel De Graaf2011-04-181-2/+5
* Define comparator for irc::sockets::sockaddrs•••This only compares IP/port, which ignores IPv6 flow information and scope ID, which aren't important in testing for equality. Gravatar Daniel De Graaf2010-04-261-0/+11
* Replace #define IPV6 with <config defaultbind="ipv6">, and autodetect if not ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12550 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-231-33/+18
* Fix cidr_mask::str not correctly displaying mask length•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12363 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-031-1/+1
* Remove unneeded save of errno•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12309 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-211-3/+5
* ERROR is not a valid log level, so all these messages were getting dropped•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12304 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-191-1/+1
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Get rid of socklen_t parameter to Bind, we are using C++ here and can do it o...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-131-1/+1
* Get rid of OpenTCPSocket•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11969 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-241-40/+10
* Create irc::sockets::cidr_mask•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11968 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-241-47/+128
* Make irc::sockets::* parameters consistent, add irc::sockets::mask•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11953 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-221-33/+65
* Kill ListenSocketBase, use OnAcceptConnection for all new connections•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11950 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-35/+29
* Use ConfigTagList as a faster access method for access to configuration•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11948 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-4/+3
* Rewrite ConfigReader again•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11879 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-171-13/+12
* 3rd time lucky? Fix again for setsockopt.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11825 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-7/+2
* Slight tweak to setsockopt fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11824 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-2/+2