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
8c4246f2
You need to sign in or sign up before continuing.
Commit
8c4246f2
authored
Nov 07, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net/SocketError: remove obsolete Error functions
parent
54d51842
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
41 deletions
+0
-41
SocketError.cxx
src/net/SocketError.cxx
+0
-3
SocketError.hxx
src/net/SocketError.hxx
+0
-38
No files found.
src/net/SocketError.cxx
View file @
8c4246f2
...
...
@@ -19,13 +19,10 @@
#include "config.h"
#include "SocketError.hxx"
#include "util/Domain.hxx"
#include "util/Macros.hxx"
#include <string.h>
const
Domain
socket_domain
(
"socket"
);
#ifdef WIN32
SocketErrorMessage
::
SocketErrorMessage
(
socket_error_t
code
)
...
...
src/net/SocketError.hxx
View file @
8c4246f2
...
...
@@ -22,7 +22,6 @@
#include "Compiler.h"
#include "system/Error.hxx"
#include "util/Error.hxx" // IWYU pragma: export
#ifdef WIN32
#include <winsock2.h>
...
...
@@ -32,14 +31,6 @@ typedef DWORD socket_error_t;
typedef
int
socket_error_t
;
#endif
class
Domain
;
/**
* A #Domain for #Error for socket I/O errors. The code is an errno
* value (or WSAGetLastError() on Windows).
*/
extern
const
Domain
socket_domain
;
gcc_pure
static
inline
socket_error_t
GetSocketError
()
...
...
@@ -108,35 +99,6 @@ public:
}
};
static
inline
void
SetSocketError
(
Error
&
error
,
socket_error_t
code
)
{
const
SocketErrorMessage
msg
(
code
);
error
.
Set
(
socket_domain
,
code
,
msg
);
}
static
inline
void
SetSocketError
(
Error
&
error
)
{
SetSocketError
(
error
,
GetSocketError
());
}
gcc_const
static
inline
Error
NewSocketError
(
socket_error_t
code
)
{
Error
error
;
SetSocketError
(
error
,
code
);
return
error
;
}
gcc_pure
static
inline
Error
NewSocketError
()
{
return
NewSocketError
(
GetSocketError
());
}
gcc_const
static
inline
std
::
system_error
MakeSocketError
(
socket_error_t
code
,
const
char
*
msg
)
...
...
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