View | Details | Raw Unified | Return to bug 649
Collapse All | Expand All

(-)a/src/internet-stack/udp-socket-impl.cc (-1 / +8 lines)
 Lines 203-211   UdpSocketImpl::ShutdownRecv (void) Link Here 
203
}
203
}
204
204
205
int
205
int
206
UdpSocketImpl::Close(void)
206
UdpSocketImpl::Close (void)
207
{
207
{
208
  NS_LOG_FUNCTION_NOARGS ();
208
  NS_LOG_FUNCTION_NOARGS ();
209
  if (m_shutdownRecv == true && m_shutdownSend == true)
210
    {
211
      m_errno = Socket::ERROR_BADF;
212
      return -1;
213
    }
214
  m_shutdownRecv = true;
215
  m_shutdownSend = true;
209
  return 0;
216
  return 0;
210
}
217
}
211
218
(-)a/src/node/socket.h (+1 lines)
 Lines 184-189   public: Link Here 
184
184
185
  /** 
185
  /** 
186
   * \brief Close a socket.
186
   * \brief Close a socket.
187
   * \returns zero on success, -1 on failure.
187
   *
188
   *
188
   * After the Close call, the socket is no longer valid, and cannot
189
   * After the Close call, the socket is no longer valid, and cannot
189
   * safely be used for subsequent operations.
190
   * safely be used for subsequent operations.

Return to bug 649