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:
@@ -297,10 +297,10 @@ ServerSocket::Close()
|
||||
OneServerSocket &
|
||||
ServerSocket::AddAddress(const sockaddr &address, size_t address_length)
|
||||
{
|
||||
sockets.emplace_front(loop, *this, next_serial,
|
||||
&address, address_length);
|
||||
sockets.emplace_back(loop, *this, next_serial,
|
||||
&address, address_length);
|
||||
|
||||
return sockets.front();
|
||||
return sockets.back();
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user