summaryrefslogtreecommitdiffstats
path: root/knights/io_internet.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:08:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:08:54 -0600
commit35676c0c2e0844ba8429771708c8a04a3314338f (patch)
treec9c226a10fc7b83bf8e7dd35430e6b19aeb85eed /knights/io_internet.cpp
parent05485bbfed57bdeab67bc5683e0dd39901c61a7f (diff)
downloadknights-35676c0c2e0844ba8429771708c8a04a3314338f.tar.gz
knights-35676c0c2e0844ba8429771708c8a04a3314338f.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'knights/io_internet.cpp')
-rw-r--r--knights/io_internet.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/knights/io_internet.cpp b/knights/io_internet.cpp
index 5967fca..a3610f1 100644
--- a/knights/io_internet.cpp
+++ b/knights/io_internet.cpp
@@ -155,7 +155,7 @@ void io_internet::connectToServer()
TQApplication::postEvent( tqApp->mainWidget(), new TQCustomEvent( EVENT_Del_IO_Net ) );
return;
}
- socket = new KSocket("127.0.0.1", myServer->Port + 1, 30);
+ socket = new TDESocket("127.0.0.1", myServer->Port + 1, 30);
if(socket->socket() == -1)
{
/* try again on a different port, somehow the port hasn't been freed yet */
@@ -173,7 +173,7 @@ void io_internet::connectToServer()
TQApplication::postEvent( tqApp->mainWidget(), new TQCustomEvent( EVENT_Del_IO_Net ) );
return;
}
- socket = new KSocket("127.0.0.1", myServer->Port + 2, 30);
+ socket = new TDESocket("127.0.0.1", myServer->Port + 2, 30);
if(socket->socket() == -1)
{
/* if we can't do it the second time, give up */
@@ -187,7 +187,7 @@ void io_internet::connectToServer()
}
else
{
- socket = new KSocket(myServer->URL, myServer->Port, 30);
+ socket = new TDESocket(myServer->URL, myServer->Port, 30);
if(socket->socket() == -1)
{
/* Couldn't connect to server. Notify User and die gracefully */
@@ -201,7 +201,7 @@ void io_internet::connectToServer()
socket->enableWrite(true);
/* connect a signal to readReady */
- connect(socket, TQT_SIGNAL(readEvent(KSocket *)), this, TQT_SLOT(readCommand(KSocket *)));
+ connect(socket, TQT_SIGNAL(readEvent(TDESocket *)), this, TQT_SLOT(readCommand(TDESocket *)));
/* setup the seekTimer and turn it off by default */
seekTimer = new TQTimer(this);
@@ -383,7 +383,7 @@ void io_internet::send(const TQString& msg)
// io_internet::readCommand
//
///////////////////////////////////////
-void io_internet::readCommand(KSocket* socket)
+void io_internet::readCommand(TDESocket* socket)
{
char buffer[READ_BUFFER_SIZE];
TQString tmp;