(10-23-2024, 08:00 PM)Justin Case Wrote: On the old version of Indy 10, I noticed that WriteInteger wasn't available - a bit of a pain when i was trying to send file sizes before sending files!
On this version (10.6.3.3) there is still no WriteInteger() procedure available yet it was in Indy 9 (and 8 I think too).
How can I get around this please?
In Indy 8 and 9, WriteInteger() and ReadInteger() were methods of TIdTCPConnection.
In Indy 10, all of the reading/writing methods were moved to TIdIOHandler, and the WriteXXX() methods were changed into Write(XXX) overloads. Old versions of Indy 10 had a Write(Integer) overload, while modern Indy 10 has a Write(Int32) overload instead (all versions of Indy 10 also have a Write(Int64) overload).
And FYI, Indy 8, 9 and 10 all have methods to write/read a TStream with a preceding size Integer (Indy 8 and 9) or Int32/Int64 (Indy 10).

