[Fri, 29 Dec 2000] Paul Rony said:

> I'm trying to follow the Appendix C in order to write my own client for
> Windows NT.  I'm using C++, so I'm in full control of every byte sent and
> received.  My problem is that the documentation does not clearly define all
> bytes in and out.
> 
> For example, the Data Exchange section mentions that all data must be
> prepended with the length of the string.  Is this length a 16-bit or 32-bit
> number?  Why is this length needed when the XCP protocol already includes a
> Content-Length header on the first line?

In this particular case, I think that is a typo in the docs.  More
specifically, this *used* to be the case in earlier versions of the
protocol, but isn't required any more.

FWIW, I did a lot of work converting the Perl client into PHP and learned
much about the API.  If you want to read through my code, it's available
at http://opensrs-php.sourceforge.net/

- Colin

Reply via email to