Alright, let me put it this way then.
I have a qt browser plugin (the basic trivial one). My plugin has two variables one of QLocalSocket and one of QLocalServer. Based on what the current url of a page is, one of them will be instantiated.
While instantiating the server, i do the following:
Code:
server = new QLocalServer(this);
server->listen("myserver");
connect(server, SIGNAL(newConnection()), this, SLOT(handleConn()));
While instantiating the client i do the following:
Code:
client = new QLocalSocket(this);
connect(client, SIGNAL(connected()), this, SLOT(connClient()));
client->connectToServer("myserver");
in my client page, after the connectToServer call, the connClient() method is called, which means the connection is established.
Whereas, in my server side, the newConnection() signal doesn't seem to be emitted.
Hope this explains it better.