[jcifs] (IP results from name query)

Michael B Allen mba2000 at ioplex.com
Fri Oct 24 12:05:41 EST 2003


>> > does jCIFS collect all of the responses in one NbtAddress object or
>> does
>> > it only return the first one (and ignore the others)?
>>
>> Returns the first, ignores the rest.
>
> Hmmm...  Speaking as the theory guy (and after having thought about it a
> while) I would have to say that this is wrong.  [ducks]
>
> A group name is associated with zero-to-many IP addresses.  Using a tool
> like nmblookup, a broadcast query for a group name returns several IPs.
> The default WINS behavior of sending only 255.255.255.255 in response to a
> group name query is clearly broken as Microsoft found out when they
> patched WINS to provide special [that's "correct"] behavior for <1C>
> names.

Agreed. It is natrual to return all addresses associated with a group
name. But NbtAddress provides no such method because we have never needed
such a method. In fact, I think we had that functionality in an early
version of jCIFS but it was removed simply because it wasn't/isn't needed.

Mike

-- 
A program should be written to  model the concepts of the task it
performs rather than the physical world or a process because this
maximizes the  potential for it  to be applied  to tasks that are
conceptually similar and, more  important, to tasks that have not
yet been conceived.



More information about the jcifs mailing list