event/ServerSocket: open sockets in the order they were configured

Use a std::list which can be appended at the end.
This commit is contained in:
Max Kellermann
2013-11-04 20:10:46 +01:00
parent 7adfea8ca2
commit bcae86196c
3 changed files with 6 additions and 5 deletions

View File

@@ -20,7 +20,7 @@
#ifndef MPD_SERVER_SOCKET_HXX
#define MPD_SERVER_SOCKET_HXX
#include <forward_list>
#include <list>
#include <stddef.h>
@@ -41,7 +41,7 @@ class ServerSocket {
EventLoop &loop;
std::forward_list<OneServerSocket> sockets;
std::list<OneServerSocket> sockets;
unsigned next_serial;