Qt server and client programming - qt

I created a server console app in Qt and now I'm creating a client gui app.
Every time when I connect to the server my server side sends data to the client.
QTcpSocket *socket = server->nextPendingConnection();
socket->write("connection is available");
In the client gui app must get this data by lineedit.
How I can get data from the server in client side?

Related

SignalR server to server communications

I have an application that uses SignalR to broadcast data to all connected clients. Its a .NET6 Blazor Wasm hosted web application. Now, I want the the broadcaster (which is running on the Blazor server) to connect to a data source that is outside my website, and get data from there. The source data is being broadcast via UDP on a different network.
So my question is, is it possible that my SignalR hub that is running on the Blazor server connects to another SignalR hub running on a different machine in a different network and get real time data from it? Or may be I can run a SignalR client as well on my Blazor server and then connect to a machine on another network? Can I run a SignalR hub on the UDP source machine to which my Blazor server SignalR hub or client can connect? From what I have read, SignalR only runs on a website. Or is it that SignalR is not suitable for this kind of server to server data feeds?

Server/Client Connection

Concerning Server/Client connection :
.Net socket server CAN communicate with .Net socket Client such as:
the desktop application developed in VS.net (Server listening in .net Web sockets)
enter code here
TcpListener Server= new TcpListener("127.0.0.1", 8000);
. . .
Server.Start()
Works perfect and listens to connections coming from clients
Unity3d Server CAN communicate perfectly with Unity Client as well.
but a desktop application using Websockets (Such in the upper example) doesn't listen/communicate with connections coming from Unity3d client such:
enter code here
client = new NetworkClient();
client.RegisterHandler(MsgType.Connect, OnClientConnect);
client.Connect("127.0.0.1", 8000);
any suggestions?

How to use a client websocket to connect to a remote websocket windows server

Help needed please
What's is the best WebSocket client library for a .net 4.5 on windows web application hosted on windows 2008 servers to connect to a remote server web socket.
The scenario is: our web application will use a web socket to connect to a server WebSocket on a third party infrastructure. Our client WebSocket will connect and send some commands and read the responses where we can identify the information needed. So there is no interaction from the user or browser its just in the code. e.g. user clicks a button and we go and get some data, and give a message dependant on the response.
so for example our client will connect to the third party socket and pass the users car registration number and send a tell me the car details and the server socket will return the data like: make, model, year etc... so we can then display that to the user.
Has anyone used this library with some good success? http://www.nuget.org/packages/WebSocket4Net
I'm hoping someone here can provide the best approach for doing this with some tried and tested solutions. I have been thinking about a web API that handles all the socket stuff in our client so i can call it and let it handle the close connection etc.

Why does my labview client program not receive the 1-d array sent by the labview server program over TCP?

the server is executed first, followed by the client.
The client attempts to initiate a TCP connection with the server. As soon as server detects it a "connection ID" is created.
The server attempts to send a "setup" packet to the client by building an array of numbers.
Server labview code
Client labview code
Setup Packet creation code:
Try to turn off your firewall, the code looks valid to me.

testing GPRS data reception in server

I have server running on winserver2008, I want to test GPRS connection, so I send some data to this server (using its IP), now how can I test data reception in my server? where does this data go? how can I receive it in my server? I'm running up an ASP.NET web app on server
thanks

Resources