PDA

View Full Version : connectToServer problem



sriky27
11th March 2009, 10:34
Hi everyone,

The problem I am facing, I have a client and a server.
The client creates the server process and while it is starting the server process it also passes an argument to the server process the name on which the server should listen, the client will also maintain the same name so that it could connect to the server on the same name.

Approaches adopted.
1. I tried logging the server and made sure that server is listening on the name.
2. I tried creating a file with the name of the connection and ensuring it on the client side that the file exists before it could call the connectToServer.

Problem faced
1. Every time the client connects to the server with connectToServer api it throws or emits the error QLocalSocket::ServerNotFoundError.

Please guide in fixing this process.

Environment:
Window xp, Qt 4.4 Beta

Regards,
Srikanth