summaryrefslogtreecommitdiff
path: root/src/network/poller.cpp
AgeCommit message (Collapse)Author
2017-03-14Refactoring louloulibs and cmakelouiz’
Use OBJECT libraries Remove the louloulibs directory Write FOUND variables in the cache
2015-02-27Remove all the libs that are now in louloulibsFlorent Le Coz
2015-02-21Use a timer to try reconnecting to the XMPP server only each 2 secondsFlorent Le Coz
When the connection is lost, immediately try to reconnect, then try to reconnect every 2 seconds. This is much better than the previous “Try to re-connect as fast as possible”.
2014-12-17Fix a few issues reported by static analyzersFlorent Le Coz
2014-05-27SocketHandlers own the poller and add themself into it only when the socket ↵Florent Le Coz
is created We want to call socket() with the parameters provided by getaddrinfo, so we can’t addd the fd into the poller immediately. We need to wait the connection attempt, and then the SocketHandler can call add_socket_handler itself, if the connection succeeds, or is in progress.
2014-05-26If both write and read events are available on a socket, only do the readFlorent Le Coz
Because the read handler may discover that the connection has been closed, and then remove the socket from the poller. It that case it is no longer valid to try to call the write handler (which may try to reconnect, but since that socket is no longer managed, this is not OK).
2014-02-22Connection to servers does not block the process anymoreFlorent Le Coz
2014-02-19Send unavailable presence to all muc when the IRC server closes the connectionFlorent Le Coz
2014-02-08Add missing logger includeFlorent Le Coz
2014-02-08Use strerror and log_error instead of perrrorFlorent Le Coz
2014-01-13Add missing stdexcept includesFlorent Le Coz
2014-01-04Add missing errno.h includesFlorent Le Coz
2014-01-04Shutdown cleanly on SIGINTFlorent Le Coz
2013-12-03Use the logger everywhereFlorent Le Coz
2013-11-21Use epollFlorent Le Coz
2013-11-10Add include for perrorFlorent Le Coz
2013-11-03Exit the poller when it handles no connection at allFlorent Le Coz
2013-11-02Basic IRC message parsing/sendingFlorent Le Coz
2013-11-02First step of the connection skeletonFlorent Le Coz
Basic connect, socket creating, polling, recving, etc.