Hi,
I have to use standard C++ socket instead of QT QSocket object.
So I've used this code:

Qt Code:
  1. if (connect(socketDescriptor,
  2. (struct sockaddr *) &serverAddress,
  3. sizeof(serverAddress)) < 0) {
  4. cerr << "cannot connect\n";
  5. exit(1);
  6. }
To copy to clipboard, switch view to plain text mode 

but this conflicts with a "QObject::connect" I use in an other part of my code.

So I have this error:

Qt Code:
  1. qtnclient.cpp: In member function ‘QString DeviceConfiguration::getValueFromServer(QString&, int&, QString&, DeviceConfiguration::configDatabyModule&)’:
  2. qtnclient.cpp:484: error: no matching function for call to ‘DeviceConfiguration::connect(int&, sockaddr*, unsigned int)’
  3. /usr/include/qt3/qobject.h:116: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*)
  4. /usr/include/qt3/qobject.h:226: note: bool QObject::connect(const QObject*, const char*, const char*) const
To copy to clipboard, switch view to plain text mode 

I need to use "QObject::connect" in a part of my program but I need also to use the standard C/C++ "connect" in another part of my program...

Any help?
Thanks,
the_bis