Added a LinkReceiver::Code() method, that can be used to retrieve the

code of the current message.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13377 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-07-01 06:50:09 +00:00
parent f598d348b1
commit 86fa5942b1
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -114,6 +114,17 @@ LinkReceiver::NeedsReply() const
}
int32
LinkReceiver::Code() const
{
if (fReplySize == 0)
return B_ERROR;
message_header *header = (message_header *)(fRecvBuffer + fRecvStart);
return header->code;
}
void
LinkReceiver::ResetBuffer()
{