I am creating a simple QSocketServer in Qt. The socket starts to listen, but the incomingConnection method never seems to run. Can someone explain what is wrong here?
main:
m_pipeserver = new PipeServer(this);
if…
I'm learning Qt and having some troubles with sending some data to QLocalServer before closing the client application. In the example i've tried to send "bye" twice. But on server side i've recieved it only once. No matter how many times client will…
I'm using QLocalServer to create a local socket so that other processes can connect to my Qt application. My problem is that Qt seems hellbent on creating the socket file in /tmp/, but I would prefer to follow XDG guidelines and use the…
I'm building a client/server architecture where a client process can connect to a server using local Unix domain sockets.
The server process is implemented in Qt and uses QLocalServer and QLocalSocket to maintain the connection at the server end.
Is…
I'm puzzled with a problem designing a simple QLocalServer-QLocalSocket IPC system.
The QLocalServer waits for a new connection and connect the signals to the proper slots.
void CommandProcessor::onNewConnection()
{
QLocalSocket* pLocal =…
I have two mac apps that communicate with each other using QLocalSocket.
Able to send the received QString but not able to send the received QImage Below is my code.
SERVER SIDE CODE
QImage image(":/asset/logo_active.png");
QByteArray ba;
…
I'm trying to send some data from QLocalSocket to QLocalSever in a loop. Sever only gets the first data and not receiving subsequent data, but if I introduce 1 mec delay between each call from the client then the server starts to receive everything.…
I am running a blocking QLocalServer in a thread:
void QThread::stopServer()
{
m_abort = true;
m_server.close(); // QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread
}
void QThread::run()
{
m_server =…
I want to run a QLocalServer in an application using asynchronous signals/slots which does not use QCoreApplication. As far as I understand this should work using a QEventLoop:
void MyThread::startSocketServer()
{
m_server = new QLocalServer();
…
I have some problem in using QLocalServer/QLocalSocket.
I'm sending raw pixel data from server to client, and there is a huge memory leakage while process. but I couldn't know what is the reason...
Memory increases about 20MB/1sec (when I checked…
I'm trying to start QLocalServer in my local OSX 10.11.
I have client which tries connection to server in loop:
int connect(const char* filename) {
int sock;
struct sockaddr_un serv_addr;
memset(&serv_addr, 0x00, sizeof(serv_addr));
…