File tree Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -69,16 +69,6 @@ BOOST_AUTO_TEST_CASE(move_assignment)
69
69
BOOST_CHECK (SocketIsClosed (s));
70
70
}
71
71
72
- BOOST_AUTO_TEST_CASE (release)
73
- {
74
- SOCKET s = CreateSocket ();
75
- Sock* sock = new Sock (s);
76
- BOOST_CHECK_EQUAL (sock->Release (), s);
77
- delete sock;
78
- BOOST_CHECK (!SocketIsClosed (s));
79
- BOOST_REQUIRE (CloseSocket (s));
80
- }
81
-
82
72
BOOST_AUTO_TEST_CASE (reset)
83
73
{
84
74
const SOCKET s = CreateSocket ();
Original file line number Diff line number Diff line change @@ -51,13 +51,6 @@ Sock& Sock::operator=(Sock&& other)
51
51
52
52
SOCKET Sock::Get () const { return m_socket; }
53
53
54
- SOCKET Sock::Release ()
55
- {
56
- const SOCKET s = m_socket;
57
- m_socket = INVALID_SOCKET;
58
- return s;
59
- }
60
-
61
54
void Sock::Reset () { CloseSocket (m_socket); }
62
55
63
56
ssize_t Sock::Send (const void * data, size_t len, int flags) const
Original file line number Diff line number Diff line change @@ -68,13 +68,6 @@ class Sock
68
68
*/
69
69
[[nodiscard]] virtual SOCKET Get () const ;
70
70
71
- /* *
72
- * Get the value of the contained socket and drop ownership. It will not be closed by the
73
- * destructor after this call.
74
- * @return socket or INVALID_SOCKET if empty
75
- */
76
- virtual SOCKET Release ();
77
-
78
71
/* *
79
72
* Close if non-empty.
80
73
*/
You can’t perform that action at this time.
0 commit comments