aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_socket.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2010-12-25 05:28:46 +0000
committerGravatar Szymon Tomasz Stefanek2010-12-25 05:28:46 +0000
commitf2f47c5eaa7d284abad1f693d7c75c85c42565df (patch)
tree2dd141a4ae4911ef3a1abf4d1910d3f7ba071c27 /src/modules/objects/class_socket.cpp
parentMore work on the window popup (diff)
downloadKVIrc-f2f47c5eaa7d284abad1f693d7c75c85c42565df.tar.gz
KVIrc-f2f47c5eaa7d284abad1f693d7c75c85c42565df.tar.bz2
KVIrc-f2f47c5eaa7d284abad1f693d7c75c85c42565df.zip
Beginning of 'the big rename & cleanup'. File names should match class names, when possible. Move classes to one per file. Move C functions to namespaces, if possible. Kill some abbreviations...
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5229 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_socket.cpp')
-rw-r--r--src/modules/objects/class_socket.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/objects/class_socket.cpp b/src/modules/objects/class_socket.cpp
index 0d2034be5..e35c62654 100644
--- a/src/modules/objects/class_socket.cpp
+++ b/src/modules/objects/class_socket.cpp
@@ -4,7 +4,7 @@
// Creation date : Sun Nov 11 03:13:45 2001 GMT by Szymon Stefanek
//
// This file is part of the KVirc irc client distribution
-// Copyright (C) 2001-2008 Szymon Stefanek (pragma at kvirc dot net)
+// Copyright (C) 2001-2010 Szymon Stefanek (pragma at kvirc dot net)
//
// This program is FREE software. You can redistribute it and/or
// modify it under the terms of the GNU General Public License
@@ -27,22 +27,22 @@
#include "class_file.h"
#include "kvi_settings.h"
-#include "kvi_qstring.h"
+#include "KviQString.h"
#define _KVI_DEBUG_CHECK_RANGE_
#include "kvi_debug.h"
-#include "kvi_file.h"
-#include "kvi_fileutils.h"
-#include "kvi_locale.h"
+#include "KviFile.h"
+#include "KviFileUtils.h"
+#include "KviLocale.h"
#include "kvi_error.h"
#include "kvi_netutils.h"
#include "kvi_dns.h"
#include "kvi_error.h"
#include "kvi_socket.h"
-#include "kvi_malloc.h"
+#include "KviMemory.h"
#include "kvi_memmove.h"
-#include "kvi_databuffer.h"
+#include "KviDataBuffer.h"
#include <QByteArray>
@@ -316,7 +316,7 @@ KVSO_BEGIN_DESTRUCTOR(KviKvsObject_socket)
m_pFlushTimer=0;
- if(m_pInBuffer)kvi_free(m_pInBuffer);
+ if(m_pInBuffer)KviMemory::free(m_pInBuffer);
if(m_pDelayTimer)delete m_pDelayTimer;
if(m_pDns)delete m_pDns;
if(m_pSn)delete m_pSn;
@@ -1099,7 +1099,7 @@ void KviKvsObject_socket::readNotifierFired(int)
{
m_uInBufferLen += KVI_IN_BUFFER_ALLOC_CHUNK;
//m_pInBuffer->resize(m_uInBufferLen);
- m_pInBuffer = (char *)kvi_realloc(m_pInBuffer,m_uInBufferLen);
+ m_pInBuffer = (char *)KviMemory::reallocate(m_pInBuffer,m_uInBufferLen);
}
//int readLength = kvi_socket_recv(m_sock,m_pInBuffer->data() + m_uInDataLen,KVI_READ_CHUNK);
@@ -1179,7 +1179,7 @@ void KviKvsObject_socket::eatInData(unsigned int uLen)
if(uSpace > KVI_IN_BUFFER_ALLOC_CHUNK)
{
m_uInBufferLen -= KVI_IN_BUFFER_ALLOC_CHUNK;
- m_pInBuffer = (char *)kvi_realloc(m_pInBuffer,m_uInBufferLen);
+ m_pInBuffer = (char *)KviMemory::reallocate(m_pInBuffer,m_uInBufferLen);
}
}
@@ -1259,7 +1259,7 @@ void KviKvsObject_socket::reset()
}
if(m_pInBuffer)
{
- kvi_free(m_pInBuffer);
+ KviMemory::free(m_pInBuffer);
m_pInBuffer = 0;
}
if(m_secondarySock)