aboutsummaryrefslogtreecommitdiff
path: root/include/socket.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-1/+1
|
* Update some code that uses "endpoint" to use "socket address" instead.Gravatar Sadie Powell2022-09-011-2/+2
|
* Move aptosa/untosa into the sockaddrs union and add from/from_ip.Gravatar Sadie Powell2022-08-111-15/+28
| | | | | | | The struct will also now always be zero-initialized by default which removes the footgun which has happened previously where the union has been accessed before being initialized leading to it containing weird values.
* Clean up the sockaddrs documentation comments.Gravatar Sadie Powell2022-08-101-7/+15
|
* Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-1/+1
|
* Slim down the globally included files.Gravatar Sadie Powell2022-04-301-13/+4
|
* Enable support for UNIX socket listeners on Windows.Gravatar Sadie Powell2022-04-301-3/+1
|
* Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-2/+2
|
* Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-2/+3
|
* Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-1/+1
|
* Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+1
| |
* | Clean up a bunch of contructors and destructors.Gravatar Sadie Powell2020-11-011-1/+1
| |
* | Convert ConfigTag from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2020-10-311-4/+4
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-04-091-1/+0
|\|
| * Fix various documentation and formatting issues.Gravatar Sadie Powell2020-03-301-1/+0
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-5/+9
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-5/+9
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-011-1/+23
|\|
| * Extract port binding code to a function and improve output.Gravatar Peter Powell2019-12-121-1/+23
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-07-161-0/+6
|\|
| * Add irc::sockets::isunix for checking if a file is a UNIX socket.Gravatar Peter Powell2019-05-291-0/+6
| |
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2019-02-151-0/+7
|\|
| * Add irc::sockets::untosa() for creating AF_UNIX sockaddrs.Gravatar Peter Powell2019-02-071-0/+7
| | | | | | | | | | Also fix an overly long albeit harmless memcpy when creating UNIX socket listeners. Thanks to @psychon for reporting this.
* | Replace the override macro with the override keyword.Gravatar Sadie Powell2019-01-251-1/+1
| |
* | Replace the TR1NS macro with the std namespace.Gravatar Sadie Powell2019-01-251-1/+1
|/
* Initial support for listening on UNIX socket endpoints.Gravatar Peter Powell2018-07-181-0/+2
|
* Add the family() member to the sockaddrs union.Gravatar Peter Powell2018-07-181-0/+2
|
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
|
* Change FailedPortList to store a sockaddrs/int instead of string.Gravatar Peter Powell2017-09-121-0/+3
|
* Store the server endpoint as a sockaddrs in ListenSocket.Gravatar Peter Powell2017-09-121-4/+1
|
* Get rid of irc::sockets::satoap().Gravatar Peter Powell2017-09-121-8/+0
| | | | | This function is being misused in all but one scenario. It isn't really worth keeping IMO.
* Keep multiple IOHookProvider references in class ListenSocketGravatar Attila Molnar2016-08-081-3/+14
| | | | This adds the <bind:hook> config option which works together with <bind:ssl>
* Change return type of ListenSocket::ResetIOHookProvider() to voidGravatar Attila Molnar2016-08-081-2/+1
| | | | No code was using the return value
* Predeclare IOHookProvider, remove iohook.h include from socket.hGravatar Attila Molnar2016-08-081-1/+0
|
* Dispatch EventHandler events to dedicated virtual functionsGravatar Attila Molnar2015-04-121-5/+2
| | | | Remove enum EventType
* Split IOHook into IOHook and IOHookProviderGravatar Attila Molnar2014-01-221-0/+13
| | | | | | | | | | | | | | | | | | 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.
* Remove some pointless code:Gravatar Peter Powell2013-12-151-7/+0
| | | | | | | | | | | | - Remove the CHARSET entry from ISUPPORT. CHARSET was removed in draft-brocklesby-irc-isupport-03 and we always used the default value anyway. This has also been removed in the latest version of Charybdis. - Remove irc::sockets::satouser. This helper method was longer than the code it replaced.
* Modularize DNSGravatar Adam2013-04-261-3/+0
| | | | | | The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.
* Tidy up source files:Gravatar Peter Powell2013-04-121-5/+1
| | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
* Fix bug #291 - fix rehashing bind tags not changing them between ↵Gravatar Adam2012-09-121-1/+1
| | | | servers/clients and ssl/nonssl
* Fix Doxygen syntax errors.Gravatar Peter Powell2012-07-051-0/+1
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+19
|
* Define comparator for irc::sockets::sockaddrsGravatar Daniel De Graaf2010-04-261-2/+5
| | | | | This only compares IP/port, which ignores IPv6 flow information and scope ID, which aren't important in testing for equality.
* Remove unneeded save of errnoGravatar danieldg2010-01-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12309 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of socklen_t parameter to Bind, we are using C++ here and can do it ↵Gravatar danieldg2009-11-131-1/+1
| | | | | | other ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of OpenTCPSocketGravatar danieldg2009-10-241-7/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11969 e03df62e-2008-0410-955e-edbf42e46eb7
* Create irc::sockets::cidr_maskGravatar danieldg2009-10-241-34/+34
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11968 e03df62e-2008-0410-955e-edbf42e46eb7