summaryrefslogtreecommitdiff
path: root/louloulibs/network/tcp_socket_handler.cpp
AgeCommit message (Collapse)Author
2016-11-11Move all the connect() logic from TCPSocketHandler into a subclasslouiz’
This way, TCPSocketHandler only deal with the message sending/receiving, not the connect() or anything else. This will be used for implementing servers (because when a client is accepted, we don’t need all the connect() and dns resolution stuff).
2016-11-07Add get-irc-connection-info adhoc commandlouiz’
fix #3171
2016-10-31Trivial cleanuplouiz’
2016-10-27Directly use Botan::byte instead of char, to avoid an unnecessary castlouiz’
2016-10-20Optimize tcp_socket::on_send by using vector::erase() only once per calllouiz’
2016-10-20Very little optimization by using a simpler scope_guard when possiblelouiz’
The version with the vector, that can be disabled etc, is “very” slow, so we use unique_ptr when we don’t need to disable it, and when it only contains one function
2016-10-06Fix the argument of strerror after bind()louiz’
fix coverity CID 134470
2016-06-13Show off, with some variadic templates, for the logger modulelouiz’
2016-01-13Quiet a warningFlorent Le Coz
2015-12-03Do not forget to call freeaddrinfo, fix a memleakFlorent Le Coz
For the getaddrinfo call we added in the previous commit, to convert the IP provided in the conf.
2015-12-01Display a better error when connection failsFlorent Le Coz
The error should not tell “while reading” when we are just connecting.
2015-12-01Add the outgoing_bind optionFlorent Le Coz
Lets the admin choose a local address to bind each outgoing (IRC) socket.
2015-11-30Do not segfault when trying to send TLS data over a not-yet connected socketFlorent Le Coz
2015-11-07Avoid leaking socket filedescriptorsFlorent Le Coz
When trying the various results of getaddrinfo, we forgot to close the socket when one fails, before trying the next one. Also use the destructor to make sure we do not have some other unrelated leak.
2015-11-05Provide an adhoc option to let user pass the cert verif for some IRC serversFlorent Le Coz
2015-11-02Verify the remote TLS certificates using the system-wide trusted CAsFlorent Le Coz
2015-10-26Fix some trivial issues reported by cppcheckFlorent Le Coz
2015-10-15Separate the DNS resolution logic from the TCP communication logicFlorent Le Coz
fix #3137
2015-09-22Catch TLS exceptions, close the connection and inform the user of the errorFlorent Le Coz
2015-07-09Display the resolved IP in debug logsFlorent Le Coz
2015-07-09If hostname resolution fails, do not try all possible portsFlorent Le Coz
2015-07-09Send the cares error message before cleaning itFlorent Le Coz
fix #3083
2015-05-28louloulibs is directly included, instead of being a submoduleFlorent Le Coz
Because this is a nightmare to manage
2015-05-27Avoid some potential race conditions by blocking the signals we manageFlorent Le Coz
They are atomically unblocked in the ppoll/epoll_pwait calls, avoiding any race condition on the check of the “stop” or “reload” booleans.
2015-05-13Update to latest louloulibs revision, and add test for hostname validityFlorent Le Coz
fix #2694
2015-05-07Update to latest louloulibsFlorent Le Coz
fix #3042
2015-04-21Properly check for connecting or connected status before reconnectingFlorent Le Coz
Note, in our context, is_connecting() includes the resolving part as well as the actual connection (if we are using c-ares) fix #3048
2015-04-20Update louloulibs submodule to the correct revisionFlorent Le Coz
2015-04-20Decode incoming JIDs local part according to xep 0106Florent Le Coz
This let users send message to nicks such as Q@CServe.quakenet.org fix #3047
2015-03-04Update to latest louloulibs revisionFlorent Le Coz
2015-03-02Update to latest louloulibs revisionFlorent Le Coz
2015-03-02Update louloulibs to last revisionFlorent Le Coz
2015-02-27Only use include_directory() if the directory path is definedFlorent Le Coz
2015-02-27Add louloulibs as a submoduleFlorent Le Coz