Fixed packet wrapper stream API to support encoder/decoder
authorPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2007 14:47:58 +0000 (14:47 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 14 Feb 2007 14:47:58 +0000 (14:47 +0000)
commitf0c131441402b9416aa0919996090750353919c2
tree69e162be0eec97b787ec55e2b45286d8477bcbf9
parent7096c93d04c73dc6d4151096a535a5c71d6ef16b
Fixed packet wrapper stream API to support encoder/decoder
for packets, and to handle partial reading correctly.  Fixed
also inbuf size checking in reading to have enough space before
reading.
lib/silccore/silcpacket.c
lib/silccore/silcpacket.h