[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdecore/network
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-11-17 1:26:47
Message-ID: 20041117012647.711B116D6C () office ! kde ! org
[Download RAW message or body]

CVS commit by thiago: 

Fix old bug whereby the signal wasn't being emitted. It wasn't being
emitted because no data was being received. That happened because the
socket was bound to the wrong address (bound to 'localhost' instead of
'anyhost').


  M +3 -3      kdatagramsocket.cpp   1.9


--- kdelibs/kdecore/network/kdatagramsocket.cpp  #1.8:1.9
@@ -1,4 +1,4 @@
 /*  -*- C++ -*-
- *  Copyright (C) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
+ *  Copyright (C) 2003,2004 Thiago Macieira <thiago.macieira@kdemail.net>
  *
  *
@@ -40,6 +40,4 @@ using namespace KNetwork;
  * don't use signals and slots to track state changes: use stateChanging
  *
- * find out why readyRead isn't emitted.
- *
  */
 
@@ -53,4 +51,6 @@ KDatagramSocket::KDatagramSocket(QObject
   localResolver().setSocketType(SOCK_DGRAM);
 
+  localResolver().setFlags(KResolver::Passive);
+
   //  QObject::connect(localResolver(), SIGNAL(finished(KResolverResults)),
   //               this, SLOT(lookupFinishedLocal()));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic