Mingw QTcpSocket does not Connect MSVC x64 QTcpServer
-
in Qt Creator example, everything works fine,
in my code below
protected:
void incomingConnection(int socketDescripto);is i use above code there is no incoming connection BUT
connect(server,SIGNAL(newConnection()),this,SLOT(sendFortune()));
working fine.
Client Side Compiled Mingw, Server Side Compiled MSVC x64
why this is so?
-
in Qt Creator example, everything works fine,
in my code below
protected:
void incomingConnection(int socketDescripto);is i use above code there is no incoming connection BUT
connect(server,SIGNAL(newConnection()),this,SLOT(sendFortune()));
working fine.
Client Side Compiled Mingw, Server Side Compiled MSVC x64
why this is so?
There is no dependency between different TCP apps compiled with different compilers.
QTcpClient can be used to connect to any Tcp server app and vice versa. Also not dependent on OS.
If you are running the described apps on same machine, you might face a problem with dlls. Object code generated with different compilers is in most cases not compatible.
When you are running the apps on different machines, there must be another reason anyway.
-
i've had the same problem as you a while back.
i was following an example that uses
void incomingConnection(int socketDescriptor);
change your declaration and definition to
virtual void incomingConnection(qintptr socketDescriptor)
-
i've had the same problem as you a while back.
i was following an example that uses
void incomingConnection(int socketDescriptor);
change your declaration and definition to
virtual void incomingConnection(qintptr socketDescriptor)