1)
<<<<<<<<<<<<<<
# 2222/1737
pkt = NCP(0x1737, "Scan Bindery Object", 'bindery')
pkt.Request((17,64), [
[ 10, 4, ObjectID ],
[ 14, 2, ObjectType ],
[ 12, (1,48), ObjectName ],
])
>>>>>>>>>>>>>>>>
This should be
>>>>>>>>>>>>
# 2222/1737
pkt = NCP(0x1737, "Scan Bindery Object", 'bindery')
pkt.Request((17,64), [
[ 10, 4, ObjectID ],
[ 14, 2, ObjectType ],
[ 16, (1,48), ObjectName ],
])
>>>>>>>>>>>><
2)
<<<<<<<<<<<<<<<<<<
# 2222/177C
pkt = NCP(0x177C, "Service Queue Job", 'queue')
pkt.Request(16, [
[ 10, 4, ObjectID ],
[ 14, 2, JobType ],
])
pkt.Reply(24, [ # XXX - 76, [
[ 8, 4, ConnectionNumber ],
[ 12, 4, TaskNumber ],
[ 16, 4, ObjectID ],
[ 20, 4, ObjectID ],
# XXX - DateTime
])
# These completion codes are not documented, but guessed.
pkt.CompletionCodes([0x0000, 0x9900, 0xd000, 0xd100, 0xd201, 0xd300,
0xd401, 0xd502, 0xd601, 0xd704, 0xd800, 0xd901, 0xda01, 0xdb01,
0xff00 ])
>>>>>>>>>>>>>>>>>>
I have not verified the correctness of this NCP call, but the reply definition
is quite different from Novell's official definition:
http://developer.novell.com/ndk/doc/docui/index.htm#../ncp/ncp__enu/data/a1wwxd7.htm^a1wwxd7
More generally, I notice that only very few NCP decodes have been implemented so far.
Do you need any help implementing the hundreds is missing NCP functions ?
MArcel