<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dennis Poon wrote / napísal(a):
<blockquote cite="mid:52495BDC.9080208@avidsoft.com.hk" type="cite">
<meta http-equiv="content-type" content="text/html; ">
<font size="+1"><br>
Also, how do I use the procedure LoadFromStream(AStream : TStream;
Format: TDataPacketFormat = dfAny)?<br>
Especially, I don't understand the TDataPacketFormat parameter.<br>
</font></blockquote>
Using Format parameter you can signal to DatapacketReader in which
format expect data (dfBinary, dfXML etc)<br>
It is not required , when not set there is procedure which tests
"incoming" data using RecognizeStream method and select those
DatapacketReader, which is able handle "incoming" data.<br>
In other words each registered DataPacketReader is able say if is able
handle data in stream or not.<br>
(examines begining of stream and looks for own "format identification")<br>
-Laco.<br>
<br>
</body>
</html>