Page 1 of 1

Real time ticket on the Fly collector.

Posted: 18 Jun 2022 04:10
by ether
Hi Gurus,

I'm currently working on an vb6(winsock) program that is supposed to capture realtime ticket over ethernet and write to a file.

The problem I am facing is that the captured ticket is showing blank only (2 blank characters in the textbox).
When getting the variable length, it is equal to 772bytes.

Code: Select all

Private Sub Winsock1_DataArrival(ByVal bytesTotal As Long)
    Dim Data as String
    Winsock1.GetData Data
       
    Text2.Text = Text2.Text & vbNewLine & Data
    Text2.Text = Text2.Text & vbNewLine & Len(Data)
End Sub

I am not programming expert though.


Regards

Re: Real time ticket on the Fly collector.

Posted: 18 Jun 2022 17:27
by sadim
Hi, you must treat the received data has hex

Re: Real time ticket on the Fly collector.

Posted: 20 Jun 2022 11:13
by ether
sadim wrote: 18 Jun 2022 17:27 Hi, you must treat the received data has hex
Thank you sadim. It works.

Time for more testing.
log to file... formatting... is next.

Re: Real time ticket on the Fly collector.

Posted: 20 Jun 2022 11:56
by sadim
Ok, thks for the feedback