org.sblim.slp.internal

Class ServiceLocationEnumeratorStreamed

Implemented Interfaces:
Enumeration, ServiceLocationEnumeration

public class ServiceLocationEnumeratorStreamed
extends java.lang.Object
implements ServiceLocationEnumeration

ServiceLocationEnumeratorStreamed.java (C) Copyright IBM Corp. 2005, 2006 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Constructor Summary

ServiceLocationEnumeratorStreamed(Vector pDaList, ServiceLocationMessage pRequestMsg, InetAddress pInetaddress)

Method Summary

ServiceLocationException
dispatchDatagramMsg(ServiceLocationMessage pRequest, Vector pResponseList, int[] pTimeoutList, int pMaxResults, InetAddress pInetAddress, boolean pJustFirstResult)
Vector
dispatchMulticastMsg(InetAddress pInetaddress, DatagramSocket pDatagramsocket1, ServiceLocationMessage pRequest, int[] pMsTimeOutsList, int pMaxResults, boolean pGetFirstResult)
static Enumeration
dispatchUAMsg(Vector pDAList, ServiceLocationMessage pRequestMsg, InetAddress pInetAddress)
boolean
hasMoreElements()
Object
next()
Return the next value or block until it becomes available.
Object
nextElement()

Constructor Details

ServiceLocationEnumeratorStreamed

public ServiceLocationEnumeratorStreamed(Vector pDaList,
                                         ServiceLocationMessage pRequestMsg,
                                         InetAddress pInetaddress)

Method Details

dispatchDatagramMsg

public ServiceLocationException dispatchDatagramMsg(ServiceLocationMessage pRequest,
                                                    Vector pResponseList,
                                                    int[] pTimeoutList,
                                                    int pMaxResults,
                                                    InetAddress pInetAddress,
                                                    boolean pJustFirstResult)

dispatchMulticastMsg

public Vector dispatchMulticastMsg(InetAddress pInetaddress,
                                   DatagramSocket pDatagramsocket1,
                                   ServiceLocationMessage pRequest,
                                   int[] pMsTimeOutsList,
                                   int pMaxResults,
                                   boolean pGetFirstResult)
            throws ServiceLocationException

dispatchUAMsg

public static Enumeration dispatchUAMsg(Vector pDAList,
                                        ServiceLocationMessage pRequestMsg,
                                        InetAddress pInetAddress)
            throws ServiceLocationException

hasMoreElements

public boolean hasMoreElements()
            throws ServiceLocationException

next

public Object next()
            throws ServiceLocationException
Return the next value or block until it becomes available.
Specified by:
next in interface ServiceLocationEnumeration
Returns:
The next value
Throws:
ServiceLocationException - Thrown if the SLP operation encounters an error.

nextElement

public Object nextElement()

Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.