Qt network access manager
Hi,
I want to implement fortune server/client example on a different IP. Well I changed the code which finds the IP Addr with this one.
and in network access manager
Code:
QNetworkConfigurationManager manager;
if (manager.capabilities() & QNetworkConfigurationManager::NetworkSessionRequired) {
// Get saved network configuration
settings.endGroup();
// If the saved network configuration is not currently discovered use the system default
QNetworkConfiguration config = manager.configurationFromIdentifier(id);
if ((config.state() & QNetworkConfiguration::InternetAccessPoint) !=
QNetworkConfiguration::InternetAccessPoint) {
config = manager.defaultConfiguration();
}
networkSession = new QNetworkSession(config, this);
connect(networkSession, SIGNAL(opened()), this, SLOT(sessionOpened()));
I did the same in both server /client.
it gave an error ::Cannot retrieve debugging output!
Pls help me understand the problem
Re: Qt network access manager
What gave you this error?
Re: Qt network access manager
well i simply changed these two things
1. code for selecting IP addr
2. In network access manager i changed
Code:
NetworkConfiguration::InternetAccessPoint
i want to run the example on a IP provided by me.
pls help
Re: Qt network access manager
But what gave you this error? A postman came and handed you a piece of paper with the error written on it?
Re: Qt network access manager
QT doesn't show any other build issue.
I am not sure my code is right.
Re: Qt network access manager
Quote:
it gave an error ::Cannot retrieve debugging output!
Actually, this means that you have an instance running and you are trying to run another one. Qt recieves output from the first running instance, so it is not able to handle the second one. See your task manager to kill all instances of your application.
Hope it helps you for future ;)