Project

General

Profile

Change request #892

Use std::variant for server events

Added by David Demelier about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
irccd
Target version:
Start date:
07/19/2018
Due date:
% Done:

100%

Estimated time:
4.00 h
MFD after:
MFD revision:
Branch:
default
Bookmark:
@
Platform:

Description

Don't use boost signals anymore, instead write a unique read function that waits for an event an call a function with a variant of all possible events.

Associated revisions

Revision 733:45ca0519d2ee (diff)
Added by David Demelier about 1 year ago

Irccd: rework server to be simpler

Server no longer has signals, now user is responsible of calling connect(),
recv() and pass a completion handler. The recv function will complete with a
std::variant of all possible events.

The server does not manage itself anymore, the reconnection system has been
moved to server_service instead.

To simplify reconnection, the limit has been removed now you can only enable
indefinite reconnection or disable it at all.

closes #893
closes #892

History

#1

Updated by David Demelier about 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#2

Updated by David Demelier about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF