Manager Object : GetResponses Method |
Visual Basic |
---|
Public Function GetResponses( _ ByVal requestMessage As SnmpMessage, _ ByVal broadcastEP As IPEndPoint, _ ByVal localEP As IPEndPoint, _ Optional ByVal timeout As Integer = 1000, _ Optional ByVal threading As ThreadingConstants = threadingBlock, _ Optional ByVal userState As Variant _ ) As Variant |
Value | Description |
---|---|
threadingAsync | Implements Apartment Model threading without method blocking. |
threadingBlock | Implements Apartment Model threading with method blocking (UI messages are processed). |
threadingFree | Implements Free Model threading with method blocking (UI messages are not processed). |
A new socket is created and used each time this method executes.
If localEP is specified, the socket is bound to the specified address family, address and port for the operation. If NULL/Nothing, a socket is created that uses a compatible 'Any' local interface and an ephemeral port.
When used asynchronously (threading is threadingAsync), the Response event will be raised providing access to each response after it has been received, and the Error event will be raised if any error occurs.
Common broadcast addresses:
IPv4 Broadcast: 255.255.255.255
IPv6 Broadcast equivalent (multicast): ff02::1