summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_netlib.cpp
blob: 83803340788be775c3880a5aaf3dbfca0d039d6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "stdafx.h"

void CToxProto::InitNetlib()
{
	NETLIBUSER nlu = {};
	nlu.flags = NUF_OUTGOING | NUF_INCOMING | NUF_HTTPCONNS | NUF_UNICODE;
	nlu.szDescriptiveName.w = m_tszUserName;
	nlu.szSettingsModule = m_szModuleName;
	m_hNetlibUser = Netlib_RegisterUser(&nlu);

	debugLogA(__FUNCTION__":Setting protocol / module name to '%s'", m_szModuleName);
}