Re: [clamav-users] INSTREAM scanning

2013-05-20 Thread xingcheng cai
clamd version:0.97.2 2013/5/20 xingcheng cai > Dear all: > > I wanna to scan buffer, and i do that as this: > 1.connect to clamd.socket > 2.send command "zINSTREAM" > 3.send buffer length > 4.send buffer data > 5.send a 0-length block to mark end of stream > 6.read clamd reply > > however i get

[clamav-users] INSTREAM scanning

2013-05-20 Thread xingcheng cai
Dear all: I wanna to scan buffer, and i do that as this: 1.connect to clamd.socket 2.send command "zINSTREAM" 3.send buffer length 4.send buffer data 5.send a 0-length block to mark end of stream 6.read clamd reply however i get "UNKOWN COMMAND". Thanks for your help. Best regards! cheney

Re: [clamav-users] INSTREAM scanning

2013-05-20 Thread G.W. Haywood
Hi there, On Mon, 20 May 2013, xingcheng cai wrote: ... i get "UNKOWN COMMAND". Did you run 'make check' when you built clamd? Take a look at unit_tests/check_clamd.c -- 73, Ged. ___ Help us build a comprehensive ClamAV guide: visit http://wiki.

[clamav-users] help

2013-05-20 Thread xingcheng cai
Dear all: I wanna to scan buffer, and i do that as this: 1.connect to clamd.socket 2.send command "zINSTREAM" 3.send buffer length 4.send buffer data 5.send a 0-length block to mark end of stream 6.read clamd reply however i get "UNKOWN COMMAND". Thanks for your help. Best regards! cheney