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
83752e93
Commit
83752e93
authored
Jul 22, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/ToString: rename sockaddr_to_string() to ToString()
parent
8fdfe85b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
ClientNew.cxx
src/client/ClientNew.cxx
+1
-1
ServerSocket.cxx
src/event/ServerSocket.cxx
+1
-1
ToString.cxx
src/net/ToString.cxx
+1
-1
ToString.hxx
src/net/ToString.hxx
+1
-1
HttpdOutputPlugin.cxx
src/output/plugins/httpd/HttpdOutputPlugin.cxx
+1
-1
run_resolver.cxx
test/run_resolver.cxx
+1
-1
No files found.
src/client/ClientNew.cxx
View file @
83752e93
...
...
@@ -62,7 +62,7 @@ client_new(EventLoop &loop, Partition &partition,
int
fd
,
SocketAddress
address
,
int
uid
)
{
static
unsigned
int
next_client_num
;
const
auto
remote
=
sockaddr_to_s
tring
(
address
);
const
auto
remote
=
ToS
tring
(
address
);
assert
(
fd
>=
0
);
...
...
src/event/ServerSocket.cxx
View file @
83752e93
...
...
@@ -112,7 +112,7 @@ public:
gcc_pure
std
::
string
ToString
()
const
{
return
sockaddr_to_s
tring
(
address
);
return
::
ToS
tring
(
address
);
}
void
SetFD
(
int
_fd
)
{
...
...
src/net/ToString.cxx
View file @
83752e93
...
...
@@ -102,7 +102,7 @@ UnmapV4(SocketAddress src, struct sockaddr_in &buffer)
#endif
std
::
string
sockaddr_to_s
tring
(
SocketAddress
address
)
ToS
tring
(
SocketAddress
address
)
{
#ifdef HAVE_UN
if
(
address
.
GetFamily
()
==
AF_UNIX
)
...
...
src/net/ToString.hxx
View file @
83752e93
...
...
@@ -33,6 +33,6 @@ class SocketAddress;
*/
gcc_pure
std
::
string
sockaddr_to_s
tring
(
SocketAddress
address
);
ToS
tring
(
SocketAddress
address
);
#endif
src/output/plugins/httpd/HttpdOutputPlugin.cxx
View file @
83752e93
...
...
@@ -209,7 +209,7 @@ HttpdOutput::OnAccept(int fd, SocketAddress address, gcc_unused int uid)
#ifdef HAVE_LIBWRAP
if
(
address
.
GetFamily
()
!=
AF_UNIX
)
{
const
auto
hostaddr
=
sockaddr_to_s
tring
(
address
);
const
auto
hostaddr
=
ToS
tring
(
address
);
// TODO: shall we obtain the program name from argv[0]?
const
char
*
progname
=
"mpd"
;
...
...
test/run_resolver.cxx
View file @
83752e93
...
...
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
}
for
(
const
struct
addrinfo
*
i
=
ai
;
i
!=
NULL
;
i
=
i
->
ai_next
)
{
const
auto
s
=
sockaddr_to_s
tring
({
i
->
ai_addr
,
i
->
ai_addrlen
});
const
auto
s
=
ToS
tring
({
i
->
ai_addr
,
i
->
ai_addrlen
});
printf
(
"%s
\n
"
,
s
.
c_str
());
}
...
...
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