Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
bcae8619
Commit
bcae8619
authored
Nov 04, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/ServerSocket: open sockets in the order they were configured
Use a std::list which can be appended at the end.
parent
7adfea8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
NEWS
NEWS
+1
-0
ServerSocket.cxx
src/event/ServerSocket.cxx
+3
-3
ServerSocket.hxx
src/event/ServerSocket.hxx
+2
-2
No files found.
NEWS
View file @
bcae8619
...
...
@@ -3,6 +3,7 @@ ver 0.18.1 (2013/11/??)
- always ignore whitespace at the end of the line
* networking:
- log UNIX domain path names instead of "localhost"
- open listener sockets in the order they were configured
* filter:
- autoconvert: fix "volume_normalization" with mp3 files
* add missing files to source tarball
...
...
src/event/ServerSocket.cxx
View file @
bcae8619
...
...
@@ -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
...
...
src/event/ServerSocket.hxx
View file @
bcae8619
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment