summaryrefslogtreecommitdiffstats
path: root/knights/io_internet.cpp
diff options
context:
space:
mode:
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;