|Subject:||how can i read the data in indy10 like indy9|
|Posted by:||ptcgh (pt…@fj95598pt.com.cn)|
|Date:||Thu, 22 Jun 2006|
in indy9,it use TStream to read AData,and it can be used to read a struture
RecvSize:=adata.Read (_UDPHead,sizeof(_UDPHead) );
the check the _UDPHead data,and then go on read a structure data.
but in indy10,using TBytes,i must read AData into another buffer and check
the length of the AData,how can i simply do it like the 9