diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-04 22:42:01 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-11-04 22:42:01 +0000 |
commit | 2c54d6e129aa0810010d1a2c004e63057b80fbf8 (patch) | |
tree | 92d9d40bf3c57c2a56ab54c15e8a7c58d6bbc9a5 /protocols/MSN/src/msn_threads.cpp | |
parent | cbaa677e46060e481d688884de85bfe7babe5dcd (diff) |
MSN:
- minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@15686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_threads.cpp')
-rw-r--r-- | protocols/MSN/src/msn_threads.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp index 8e92e2e72e..e2851c4220 100644 --- a/protocols/MSN/src/msn_threads.cpp +++ b/protocols/MSN/src/msn_threads.cpp @@ -23,9 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h"
#include "msn_proto.h"
-/////////////////////////////////////////////////////////////////////////////////////////
// Keep-alive thread for the main connection
-
void __cdecl CMsnProto::msn_keepAliveThread(void*)
{
bool keepFlag = true;
@@ -89,8 +87,6 @@ void __cdecl CMsnProto::msn_refreshOAuthThread(void *param) MSN_SendATH((ThreadData*)param);
}
}
-/////////////////////////////////////////////////////////////////////////////////////////
-// MSN server thread - read and process commands from a server
static bool ReallocInfoBuffer(ThreadData *info, size_t mDataSize)
{
@@ -104,6 +100,7 @@ static bool ReallocInfoBuffer(ThreadData *info, size_t mDataSize) return true;
}
+// MSN server thread - read and process commands from a server
void __cdecl CMsnProto::MSNServerThread(void* arg)
{
ThreadData* info = (ThreadData*)arg;
@@ -544,14 +541,15 @@ ThreadData* CMsnProto::MSN_GetThreadByPort(WORD wPort) /////////////////////////////////////////////////////////////////////////////////////////
// class ThreadData members
-
-ThreadData::ThreadData()
+ThreadData::ThreadData() : mDataSize(8192), mGatewayTimeout(2), mFunc(0), mIncomingBoundPort(0), mIncomingPort(0),
+ mIsMainThread(false), sessionClosed(false), mBridgeInit(false), gatewayType(false), termPending(false), firstMsgRecv(false),
+ mTrid(0), mBytesInData(0), mMsnFtp(0), mCaller(0), mTimerId(0), proto(0), s(0)
{
memset(&mInitialContactWLID, 0, sizeof(ThreadData) - 2 * sizeof(STRLIST));
- mGatewayTimeout = 2;
+
resetTimeout();
hWaitEvent = CreateSemaphore(NULL, 0, MSN_PACKETS_COMBINE, NULL);
- mData = (char*)mir_calloc((mDataSize=8192)+1);
+ mData = (char*)mir_calloc(mDataSize + 1);
}
ThreadData::~ThreadData()
@@ -754,9 +752,7 @@ BYTE* HReadBuffer::surelyRead(size_t parBytes) /////////////////////////////////////////////////////////////////////////////////////////
// class GCThreadData members
-
-GCThreadData::GCThreadData() :
-mJoinedContacts(10, PtrKeySortT)
+GCThreadData::GCThreadData() : mJoinedContacts(10, PtrKeySortT), mMe(0), netId(0)
{
memset(&mCreator, 0, sizeof(GCThreadData) - sizeof(mJoinedContacts));
}
|