Hello,
> i converted the indy client and server To TWsocket and Twsocket server and
here is the code of server after convert
Instead of publishing a lot of some competing socket component that no one
will read, please ask specific question about ICS and TWSocket;
Don't forget to look in the
> ics dont have any sample on how to send receive memory stream i no this is
nothing to do with indy i thought i can use ics in same way
TWSocket has a Send method which you can use to send any data providing a
pointer and a count. This is perfect for sending a TMemoryStream:
> ics dont have any sample on how to send receive memory stream
OverbyteIcsRecv.dpr and OverbyteIcsSender.dpr send data between each
other, to send a stream you simply read part of into a buffer, send
them, when the onDataSent is triggered you send more.
Several ICS components send streams,
i spend days to try to figure out how to send stream with commands in ics ,
i used sendstr to send texted commands i thought i have to use Send to send
memory stream but how to receive that memory stream if i already
used receivestr it wont receive the memory stream with receive at the same
time