That sounds like a bug, that if you disconnect it won't let you see the data again unless you restart RadarBox. We will take a look at that.
You should though be able to get the hex codes as the data structure has not changed.
I’m not that technical, but maybe the follow makes some sense.
Sequence of starting programs makes a difference.
First I start my own developed program. Program will feed my site OK. A telnet session only will give <MODESMESSAGE></MODESMESSAGE> as output.
If I fist start telnet and then my own program, my program will not process the data (this is because it will only get <MODESMESSAGE></MODESMESSAGE> as input.
I’m still not sure if it is related or not, but closing down the telnet or my program : radarbox give network connection green, but the tab network will give network (0). If I go to the tab Network and uncheck Get flight from network and then I check this option again. The network will stay empty,
Closing down Radarbox will give an error.
Restarting Radarbox will give me back the network traffic. This moment I see on the tab Network (762).
A telnet session will give me or nothing or only: <MODESMESSAGE></MODESMESSAGE>
After restarting the pc everything seems to be back to normal and I can reproduce the above.
My program uses this code to make the connection
For opening:
m_socClient = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
Dim ip As IPAddress = IPAddress.Parse(host)
Dim iPortNo As Integer = port
Dim ipEnd As IPEndPoint = New IPEndPoint(ip.Address, iPortNo)
m_socClient.BeginConnect(ipEnd, AddressOf OnConnected, Nothing)
For closing connection:
Dim ar As IAsyncResult
Try
m_socClient.EndReceive(ar)
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
m_socClient.Shutdown(SocketShutdown.Both)
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
m_socClient.Close()
Catch ex As Exception
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try
Try
Dim e As New EventArgs
RaiseEvent evtDisconnected(Me, e)
Catch ex As Exception
' Trace.TraceError("ERROR in PortListener: " & ex.Message)
System.IO.File.AppendAllText("error.txt", ex.Message & vbNewLine)
End Try