Hello coders,
Im trying to make an InSim app in VB6.
LFS doesn't accapt my ISI packet, it comes with the message: "InSim : packet received before ISI packet".
I'm sending this:
Declarations:
There is something wrong with the packet content, but i don't know what. Could be the Data Types. Anyone?
Im trying to make an InSim app in VB6.
LFS doesn't accapt my ISI packet, it comes with the message: "InSim : packet received before ISI packet".
I'm sending this:
Declarations:
'//The struct
Public Type InSimInit
Id As String * 4
Port As Integer
Flags As Byte
NodeSecs As Byte
Admin As String * 16
End Type
Public InSimInit As InSimInit
'//Holds binary version
Public Type ISI
Bin() As Byte
End Type
Dim ISI As ISI
InSimInit.Id = "ISI" '// + zero?? "ISI0"? help
InSimInit.Port = 3002
InSimInit.Flags = 16
InSimInit.NodeSecs = 0
InSimInit.Admin = "pass"
LSet ISI = InSimInit 'Create binary
WinSock.SendData ISI.Bin
There is something wrong with the packet content, but i don't know what. Could be the Data Types. Anyone?