aboutsummaryrefslogtreecommitdiff
path: root/include/socket.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-2/+1
|
* Add a helper method for determining if a sockaddrs is an IP endpoint.Gravatar Sadie Powell2023-01-171-0/+3
|
* Allow creating a FailedPort without a bindspec.Gravatar Sadie Powell2023-01-171-0/+7
|
* Store the actual error in FailedPort instead of an error code.Gravatar Sadie Powell2023-01-161-4/+4
|
* Add support for SCTP listeners.Gravatar Sadie Powell2023-01-161-1/+2
|
* Avoid copying shared_ptr<ConfigTag> when not necessary.Gravatar Sadie Powell2023-01-101-2/+2
|
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+1
| |
* | Use in_port_t instead of int/unsigned int/long.Gravatar Sadie Powell2022-12-181-2/+3
| |
* | We actually want ADDRESS_FAMILY not SOCKET_ADDRESS for sa_family_t.Gravatar Sadie Powell2022-12-181-1/+1
| | | | | | | | Apparently I can not read headers properly.
* | Add is_local to the sockaddrs union.Gravatar Sadie Powell2022-12-181-0/+3
| |
* | Use SOCKET_ADDRESS instead of u_short.Gravatar Sadie Powell2022-12-181-1/+1
| | | | | | | | These are typedefs but the former is more correct.
* | Add a typedef for sa_family_t on Windows.Gravatar Sadie Powell2022-11-161-2/+3
| |
* | 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.