This site is for P2P development and test software ONLY!

Nickthief

void CUpDownClient::SendHelloTypePacket(CSafeMemFile* data)
{
data->WriteHash16(thePrefs.GetUserHash());
uint32 clientid;
clientid = theApp.GetID();

data->WriteUInt32(clientid);
data->WriteUInt16(thePrefs.GetPort());

uint32 tagcount = 6;

if( theApp.clientlist->GetBuddy() && theApp.IsFirewalled() )
tagcount += 2;

data->WriteUInt32(tagcount);

// eD2K Name

// TODO implement multi language website which informs users of the effects of bad mods
CTag tagName(CT_NAME, (m_pszUsername) ? m_pszUsername : thePrefs.GetUserNick()); // NickThief
//CTag tagName(CT_NAME, (!m_bGPLEvildoer) ? thePrefs.GetUserNick() : _T("Please use a GPL-conform version of eMule") );
tagName.WriteTagToFile(data, utf8strRaw);

// eD2K Version
CTag tagVersion(CT_VERSION,EDONKEYVERSION);
tagVersion.WriteTagToFile(data);
[...]

0 comments:

发表评论