diff options
author | samantharitter <samantha.ritter@10gen.com> | 2016-04-05 15:51:43 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2016-04-07 11:23:31 -0400 |
commit | afba9eed9f0c1ada1f5470052800a06050189b2b (patch) | |
tree | 5394a264f684f39447c5681910a3f40a611aa0e7 /src/mongo/util/net/sock.cpp | |
parent | e6440832ad8a91dfb6cc317309002aff32c71448 (diff) | |
download | mongo-afba9eed9f0c1ada1f5470052800a06050189b2b.tar.gz |
SERVER-23513 Move SocketException to its own library
Diffstat (limited to 'src/mongo/util/net/sock.cpp')
-rw-r--r-- | src/mongo/util/net/sock.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp index 59e7cc0fbd0..c0c526a0b22 100644 --- a/src/mongo/util/net/sock.cpp +++ b/src/mongo/util/net/sock.cpp @@ -57,8 +57,9 @@ #include "mongo/util/mongoutils/str.h" #include "mongo/util/log.h" #include "mongo/util/net/message.h" -#include "mongo/util/net/ssl_manager.h" +#include "mongo/util/net/socket_exception.h" #include "mongo/util/net/socket_poll.h" +#include "mongo/util/net/ssl_manager.h" #include "mongo/util/quick_exit.h" namespace mongo { @@ -216,8 +217,6 @@ string prettyHostName() { return s.str(); } -// --------- SocketException ---------- - #ifdef MSG_NOSIGNAL const int portSendFlags = MSG_NOSIGNAL; const int portRecvFlags = MSG_NOSIGNAL; @@ -226,19 +225,6 @@ const int portSendFlags = 0; const int portRecvFlags = 0; #endif -string SocketException::toString() const { - stringstream ss; - ss << _ei.code << " socket exception [" << _getStringType(_type) << "] "; - - if (_server.size()) - ss << "server [" << _server << "] "; - - if (_extra.size()) - ss << _extra; - - return ss.str(); -} - // ------------ Socket ----------------- static int socketGetLastError() { |