- Home /
TCP Problem
Hi guys, I am creating a kind of Data-Visulizer which receives stream of data over TCP and draws Graphs/Signals on screen using Vectrosity. I have a "Network" class which handles network operations, a "RawPacket" class that encapsulates incoming data. "Network" reads tcp socket, creates "RawPacket" objects of them and finally puts created object in a Queue. A C# script dequeues objects from the queue, interprets and draws data. The major problem: after a while, somehow, my graphs show garbage (spikes) on screen while my data are OK (I have tested). Does anyone know how can I pass data safely from my Network object to drawing object? Oh, data transfer rate is 1~2KB/sec, both client and server programs live on the same machine, packet size varies between 28 and 500 bytes. Since the order of packets is vital, I use synchronized socket operation.
It's really hard to say what the problem is without snippets of code and what type of data you are sending.
Your answer
Follow this Question
Related Questions
How to watch in client applications what it is happening in the server one? 0 Answers
IS it possible to have delayed player spawning after server connection? (UNet) 1 Answer
Since switching to using offline & online scenes in the NetworkManager, Clients will not sync (UNET) 0 Answers
Network - Sync a seed random number at the start of the game 1 Answer
[Unet] NetworkServer can not assign local player authority after a scene change 0 Answers