[jcifs] Strange jetDirect printer behavior
Christopher R. Hertel
crh at ubiqx.mn.org
Tue Feb 5 23:09:14 GMT 2008
Hmmm... Interesting. I must have missed the original message.
So, if I send an NBT Name Query via broadcast, the JetDirect NBT
implementation might respond with an Node Status response? How annoying.
I'll have to try that some time. :)
Chris -)-----
Michael B Allen wrote:
> Fixed. To be released in 1.2.18.
>
> But instead of your patch I just did:
>
> long start = System.currentTimeMillis();
> while (timeout > 0) {
> response.wait( timeout );
>
> /* JetDirect printer can respond to regular broadcast query
> * with node status so we need to check to make sure that
> * the record type matches the question type and if not,
> * loop around and try again.
> */
> if (response.received && request.questionType == response.recordType)
> return;
>
> response.received = false;
> timeout -= System.currentTimeMillis() - start;
> }
>
> Mike
>
--
"Implementing CIFS - the Common Internet FileSystem" ISBN: 013047116X
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the jcifs
mailing list