Misc User Apps - nextsessionid() Dymolex - Wed Jan 20, 2016 1:27 am Post subject: nextsessionid()
'Get the next session ID. It's a number which identifies packets
Public Function NextSessionID(ServerID As Integer) As String
With ServerList(ServerID)
Call CopyMemory(ByVal Pointer, .SessionID, 4)
.SessionID = .SessionID + 1 'Increment afterwards: always starts at zero
NextSessionID = Pointer
End With
End Function
I've been trying to remove a bug in catid's vb biller (in lates.zip)
with every packet sent it counts the number of them and sends it with the packets.
but what happens when it reaches the last max (2147483647 (for long type variable))?
it's sorta impossible to test this cause the max it too big to wait for.