Write is an overridden LongInt function that reimplements support for writing TStream contents to the socket handle specified in
Connection. Write calls the
TIdTCPConnection.WriteBuffer method, using the input parameters ABuffer and ACount, to perform the physical output of values to the socket connection. The return value for Write is the updated value of the ACount input parameter after the call to
TIdTCPConnection.WriteBuffer.