c - Multiple sockets or larger packets for high frequency data streams? -
im working on application uses nodejs communicate (as client) socket exposed server (written in c
). server sends data sensors , client plots it.
suppose have 100 plots , 100 sensors. should open 100 sockets 100 different ports or should create sort of virtual channel inside socket sending larger packets?
as stands send 100 bytes @ 50hz each byte dummy sensor data (uint8
). further down road move uint32
accommodate sensor data output, still transmitting @ 50hz. mean each packet 400 bytes @ 50hz.
in short: multiple sockets or virtual data channels inside packet?
wiki
Comments
Post a Comment