Skip to content

Commit

Permalink
handle session destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Feb 11, 2014
1 parent 4862b59 commit f8d1055
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion SSU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,22 @@ namespace ssu
LogPrint ("SSU test received");
break;
case PAYLOAD_TYPE_SESSION_DESTROYED:
{
LogPrint ("SSU session destroy received");
if (m_Server)
m_Server->DeleteSession (this); // delete this
}
break;
default:
LogPrint ("Unexpected SSU payload type ", (int)payloadType);
}
}
// TODO: try intro key as well
// TODO: try intro key
else
{
LogPrint ("MAC verifcation failed");
m_State = eSessionStateUnknown;
}
}

void SSUSession::ProcessSessionRequest (uint8_t * buf, size_t len, const boost::asio::ip::udp::endpoint& senderEndpoint)
Expand Down

0 comments on commit f8d1055

Please sign in to comment.