1-Wire API for .NET Version 4.00
Public Member Functions

MulticastListener Class Reference

Generic Mulitcast broadcast listener. More...

List of all members.

Public Member Functions

 MulticastListener (int multicastPort, String multicastGroup, byte[] expectedMessage, byte[] returnMessage) throws IOException,UnknownHostException
 Creates a multicast listener on the specified multicast port, bound to the specified multicast group.
void run ()
 Run method waits for Multicast packets with the specified contents and replies with the specified message.
void stopListener ()
 Waits for datagram listener to finish, with a timeout.

Detailed Description

Generic Mulitcast broadcast listener.

Listens for a specific message and, in response, gives the specified reply. Used by NetAdapterHost for automatic discovery of host components for the network-based DSPortAdapter.

Author:
SH
Version:
1.00

Constructor & Destructor Documentation

MulticastListener ( int  multicastPort,
String  multicastGroup,
byte[]  expectedMessage,
byte[]  returnMessage 
) throws IOException,UnknownHostException

Creates a multicast listener on the specified multicast port, bound to the specified multicast group.

Whenever the byte[] pattern specified by "expectedMessage" is received, the byte[] pattern specifed by "returnMessage" is sent to the sender of the "expected message".

Parameters:
multicastPortPort to bind this listener to.
multicastGroupGroup to bind this listener to.
expectedMessagethe message to look for
returnMessagethe message to reply with

The documentation for this class was generated from the following file: