Codebase list pysmb / 876c495e-988f-420c-9c90-64646a5d8138/upstream sphinx / source / api / nmb_NBNSProtocol.rst
876c495e-988f-420c-9c90-64646a5d8138/upstream

Tree @876c495e-988f-420c-9c90-64646a5d8138/upstream (Download .tar.gz)

nmb_NBNSProtocol.rst @876c495e-988f-420c-9c90-64646a5d8138/upstreamview markup · raw · history · blame

NBNSProtocol Class

pysmb has a NBNSProtocol implementation for Twisted framework. This allows you to perform name query asynchronously without having your application to block and wait for the results.

In your project,
  1. Create a NBNSProtocol instance.
  2. Just call queryName method which will return a Deferred instance. Add your callback function to the Deferred instance via addCallback method to receive the results of the name query.
  3. When you are done with the NBNSProtocol instance, call its <NBNSProtocol instance>.transport.stopListening method to remove this instance from the reactor.

System Message: INFO/1 (<string>, line 13)

No directive entry for "autoclass" in module "docutils.parsers.rst.languages.en". Trying "autoclass" as canonical directive name.

System Message: ERROR/3 (<string>, line 13)

Unknown directive type "autoclass".

.. autoclass:: nmb.NetBIOSProtocol.NBNSProtocol
    :members:
    :special-members:

System Message: INFO/1 (<string>, line 17)

No directive entry for "autoclass" in module "docutils.parsers.rst.languages.en". Trying "autoclass" as canonical directive name.

System Message: ERROR/3 (<string>, line 17)

Unknown directive type "autoclass".

.. autoclass:: nmb.NetBIOSProtocol.NetBIOSTimeout
    :members: