Hello
I want to send packets TCP to a server in lazarus (object pascal) from types defined in B4A. The idea is to convert it to primitive byte array
Please I need your great support,
Bruce
I want to send packets TCP to a server in lazarus (object pascal) from types defined in B4A. The idea is to convert it to primitive byte array
B4X:
Type TPackPosition(Hour As long, latitude As Double, longitude As double)
...
..
Dim Position as TPackPosition
Position.initialize
Position.Hour = DateTime.now
Position.Latitude = -16.46541
Position.Latitude = -70.487899
Dim obj As Object = Position
Dim buffer() as byte = obj
...
Stream.Write(buffer)
Please I need your great support,
Bruce