Unsolved Peer to Peer Connection
-
how to make peer to peer connection through Local Area Network using an ethernet cable
-
@Pilel how is that Qt related? This should be done on system level (and you didn't even specified your platform)
-
Have a look at some examples and the
QtNetwork
module in general.P2P UDP Network Chat
All examples
-
@artwaw
thank you for replying
in fact, my task consists of sharing real-time data between two nodes
the two nodes are related with an ethernet cable and running Linux distribution os
one node sends data to the second one to control some sensors connected to it and receiving the sensors' state to plot them in a dashboard (the dashboard will be developed using qt) -
@Pilel
I don't know about your OSI Model's 7 layers! :) But do you just mean they should communicate over sockets, like TCP or UDP? -
Most of the time you face OSI Layer 8 problems :o)
-
@Pl45m4
more explication, please -
@Pilel mqtt or ros is another option for control if no large amount of data is involved..
-
@JoeCFD thanks
I have video streaming in the second node so can MQTT support video streaming -
@Pilel
Hi
Nope MQTT does not work well with live video.So if you need to stream video, it's completely another story than sending some data from sensors.
-
@mrjj thank you
but a camera is a sensor.
and I have some other sensors.
have you a suggestion ?? -
well depends on what you really want to do and what data it is.
for true streaming of a live camera , you can use
https://vlc-qt.tano.si/is the camera is an ip one and the goal is to show LIVE video.
else the network classes @Pl45m4 points to will do a fine job.
-
@Pilel you can also use gstreamer or qtgstreamer to stream video. For other controls(turn on and off, etc.), mqtt can be good.
-
For sending data where bandwidth will not be a problem you can check the simple chat example
For video/audio see the suggestions posted above regarding libvlc/gstreamer