yes, available() should be in the basic api and read should throw an exception or block if not enough bytes are available, to avoid the risk of someone ignoring "EOF" /r$ -- Zolera Systems, Your Key to Online Integrity Securing Web services: XML, SOAP, Dig-sig, Encryption http://www.zolera.com