added few comments and renamed one field in MessageBase.h

This commit is contained in:
Andrey Prygunkov
2007-12-13 00:34:00 +00:00
parent 0a43829772
commit adedd66dac
4 changed files with 83 additions and 81 deletions

View File

@@ -122,7 +122,7 @@ bool RemoteClient::InitConnection()
void RemoteClient::InitMessageBase(SNZBMessageBase* pMessageBase, int iRequest, int iSize)
{
pMessageBase->m_iId = htonl(NZBMESSAGE_SIGNATURE);
pMessageBase->m_iSignature = htonl(NZBMESSAGE_SIGNATURE);
pMessageBase->m_iType = htonl(iRequest);
pMessageBase->m_iSize = htonl(iSize);
strncpy(pMessageBase->m_szPassword, g_pOptions->GetServerPassword(), NZBREQUESTPASSWORDSIZE - 1);