Bugzilla – Attachment #290: align listen behavior with linux for bug #358
TcpSocketImpl::Listen (void)
{
NS_LOG_FUNCTION (this);
//linux quits EINVAL if we're not closed, so match what they do
if (m_state != CLOSED)
m_errno = ERROR_INVAL;
return -1;
}
Actions_t action = ProcessEvent (APP_LISTEN);
ProcessAction (action);
return 0;