Sockets/Sockets.cpp
Socket::Socket(Socket&& s)
{
  socket_ = s.socket_;
  s.socket_ = INVALID_SOCKET;
  ipver_ = s.ipver_;
  ZeroMemory(&hints, sizeof(hints));
  hints.ai_family = s.hints.ai_family;
  hints.ai_socktype = s.hints.ai_socktype;
  hints.ai_protocol = s.hints.ai_protocol;
}
//----< transfer socket ownership with move constructor >--------------------
< transfer socket ownership with move constructor >
< transfer socket ownership with move constructor >
Socket::Socket(Socket&& s)
{
  socket_ = s.socket_;
  s.socket_ = INVALID_SOCKET;
  ipver_ = s.ipver_;
  ZeroMemory(&hints, sizeof(hints));
  hints.ai_family = s.hints.ai_family;
  hints.ai_socktype = s.hints.ai_socktype;
  hints.ai_protocol = s.hints.ai_protocol;
}
Socket :: Socket ( Socket && s ) { socket_ = s . socket_ ; s . socket_ = INVALID_SOCKET ; ipver_ = s . ipver_ ; ZeroMemory ( & hints , sizeof ( hints ) ) ; hints . ai_family = s . hints . ai_family ; hints . ai_socktype = s . hints . ai_socktype ; hints . ai_protocol = s . hints . ai_protocol ; }
< transfer socket ownership with move constructor >
< transfer socket ownership with move constructor >