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
4f408bd9
Commit
4f408bd9
authored
Mar 20, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/ServerSocket, doc, ...: refer to AF_LOCAL as "local socket"
.. and not "UNIX domain socket. Be consistent about the naming.
parent
7de8fd04
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
plugins.rst
doc/plugins.rst
+1
-1
protocol.rst
doc/protocol.rst
+3
-3
Net.hxx
src/config/Net.hxx
+3
-3
ServerSocket.cxx
src/event/ServerSocket.cxx
+1
-1
ServerSocket.hxx
src/event/ServerSocket.hxx
+1
-1
SocketUtil.cxx
src/net/SocketUtil.cxx
+1
-1
SocketUtil.hxx
src/net/SocketUtil.hxx
+1
-1
ToString.cxx
src/net/ToString.cxx
+1
-1
No files found.
doc/plugins.rst
View file @
4f408bd9
...
...
@@ -849,7 +849,7 @@ It is highly recommended to configure a fixed format, because a stream cannot sw
* - **port P**
- Binds the HTTP server to the specified port.
* - **bind_to_address ADDR**
- Binds the HTTP server to the specified address (IPv4, IPv6 or
UNIX
socket). Multiple addresses in parallel are not supported.
- Binds the HTTP server to the specified address (IPv4, IPv6 or
local
socket). Multiple addresses in parallel are not supported.
* - **encoder NAME**
- Chooses an encoder plugin. A list of encoder plugins can be found in the encoder plugin reference :ref:`encoder_plugins`.
* - **max_clients MC**
...
...
doc/protocol.rst
View file @
4f408bd9
...
...
@@ -721,7 +721,7 @@ run playlist plugins instead of the hard-coded simple
`m3u` parser. They can access playlists in
the music directory (relative path including the suffix),
playlists in arbitrary location (absolute path including the suffix;
allowed only for clients that are connected via
UNIX domain
socket), or
allowed only for clients that are connected via
local
socket), or
remote playlists (absolute URI with a supported scheme).
:command:`listplaylist {NAME}`
...
...
@@ -931,7 +931,7 @@ The music database
This command may be used to list metadata of remote
files (e.g. URI beginning with "http://" or "smb://").
Clients that are connected via
UNIX domain
socket may
Clients that are connected via
local
socket may
use this command to read the tags of an arbitrary local
file (URI is an absolute path).
...
...
@@ -1222,7 +1222,7 @@ Reflection
:command:`config`
Dumps configuration values that may be interesting for
the client. This command is only permitted to "local"
clients (connected via
UNIX domain
socket).
clients (connected via
local
socket).
The following response attributes are available:
...
...
src/config/Net.hxx
View file @
4f408bd9
...
...
@@ -23,14 +23,14 @@
class
ServerSocket
;
/**
* Sets the address or
unix
socket of a ServerSocket instance
* Sets the address or
local
socket of a ServerSocket instance
* There are three possible ways
* 1) Set address to a valid ip address and specify port.
* server_socket will listen on this address/port tuple.
* 2) Set address to null and specify port.
* server_socket will listen on ANY address on that port.
* 3) Set address to a path of a
unix
socket. port is ignored.
* server_socket will listen on this
unix
socket.
* 3) Set address to a path of a
local
socket. port is ignored.
* server_socket will listen on this
local
socket.
*
* Throws #std::runtime_error on error.
*
...
...
src/event/ServerSocket.cxx
View file @
4f408bd9
...
...
@@ -392,7 +392,7 @@ ServerSocket::AddPath(AllocatedPath &&path)
#else
/* !HAVE_UN */
(
void
)
path
;
throw
std
::
runtime_error
(
"
UNIX domain
socket support is disabled"
);
throw
std
::
runtime_error
(
"
Local
socket support is disabled"
);
#endif
/* !HAVE_UN */
}
...
...
src/event/ServerSocket.hxx
View file @
4f408bd9
...
...
@@ -90,7 +90,7 @@ public:
void
AddHost
(
const
char
*
hostname
,
unsigned
port
);
/**
* Add a listener on a
Unix domain
socket.
* Add a listener on a
local
socket.
*
* Throws #std::runtime_error on error.
*
...
...
src/net/SocketUtil.cxx
View file @
4f408bd9
...
...
@@ -35,7 +35,7 @@ socket_bind_listen(int domain, int type, int protocol,
throw
MakeSocketError
(
"Failed to create socket"
);
#ifdef HAVE_UN
if
(
domain
==
AF_
UNIX
)
{
if
(
domain
==
AF_
LOCAL
)
{
/* Prevent access until right permissions are set */
fchmod
(
fd
.
Get
(),
0
);
}
...
...
src/net/SocketUtil.hxx
View file @
4f408bd9
...
...
@@ -32,7 +32,7 @@ class SocketAddress;
/**
* Creates a socket listening on the specified address. This is a
* shortcut for socket(), bind() and listen().
* When a
unix socket is created (domain == AF_UNIX
), its
* When a
local socket is created (domain == AF_LOCAL
), its
* permissions will be stripped down to prevent unauthorized
* access. The caller is responsible to apply proper permissions
* at a later point.
...
...
src/net/ToString.cxx
View file @
4f408bd9
...
...
@@ -106,7 +106,7 @@ ToString(SocketAddress address) noexcept
{
#ifdef HAVE_UN
if
(
address
.
GetFamily
()
==
AF_LOCAL
)
/* return path of
UNIX domain sockets
*/
/* return path of
local socket
*/
return
LocalAddressToString
(
*
(
const
sockaddr_un
*
)
address
.
GetAddress
(),
address
.
GetSize
());
#endif
...
...
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