How can i send a record in Indy TIDTCPServer (version 10.5.8 )
Many examples for previous version shows us
AThread.connection.WriteBuffer(MyRec,SizeOf(MyRec),true); // myrec is a record
but what is the equal command in indy 10.5.8
IdContext.Connection.IOHandler.?????
use the
RawToBytesfunction to convert a buffer to aTIdBytes(which is the type that accepts the Write method)Check this sample.