org.sblim.slp.internal
Class MessageDispatcher

java.lang.Object
  extended by org.sblim.slp.internal.MessageDispatcher
All Implemented Interfaces:
java.lang.Runnable

public class MessageDispatcher
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  java.net.InetAddress iAddress
           
protected  ServiceLocationException iExErr
           
protected  int iMaxResults
           
protected  org.sblim.slp.internal.ServiceLocationMessage iMsgOut
           
protected  java.util.Vector iResponseList
           
protected  int[] iTimeoutList
           
 
Method Summary
protected static boolean addPreviousResponder(org.sblim.slp.internal.ServiceLocationMessage pRequest, java.net.InetAddress pInetAddress)
           
static ServiceLocationException dispatchDAMsg(java.util.Vector pDAList, org.sblim.slp.internal.ServiceLocationMessage pRequest, java.util.Vector pResults, int pMaxReplies)
           
static ServiceLocationException dispatchDatagramMsg(org.sblim.slp.internal.ServiceLocationMessage pRequest, java.util.Vector pResponseList, int[] pTimeoutList, int pMaxResults, java.net.InetAddress pInetAddress, boolean pJustFirstResult)
           
static java.util.Vector dispatchMulticastMsg(java.net.InetAddress pInetAddress, java.net.DatagramSocket pDatagramSocket, org.sblim.slp.internal.ServiceLocationMessage pRequest, int[] pMsTimeOutsList, int pMaxResults, boolean pGetFirstResult)
           
static org.sblim.slp.internal.ServiceLocationMessage dispatchStreamMsg(java.net.InetAddress pInetAddress, org.sblim.slp.internal.ServiceLocationMessage pRequest, boolean pRetry)
           
static java.util.Vector dispatchUAMsg(java.util.Vector pDAList, org.sblim.slp.internal.ServiceLocationMessage pRequestMsg, java.net.InetAddress pInetAddress)
           
static byte[] getByteArray(java.lang.String pHex)
           
protected static byte[] getBytes(org.sblim.slp.internal.ServiceLocationMessage pRequest, boolean pUsingMCast, boolean pUsingStreams)
           
static void main(java.lang.String[] args)
           
protected static org.sblim.slp.internal.ServiceLocationMessage parseMsg(java.io.DataInputStream pInputStream)
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iMaxResults

protected int iMaxResults

iMsgOut

protected org.sblim.slp.internal.ServiceLocationMessage iMsgOut

iResponseList

protected java.util.Vector iResponseList

iTimeoutList

protected int[] iTimeoutList

iExErr

protected ServiceLocationException iExErr

iAddress

protected java.net.InetAddress iAddress
Method Detail

addPreviousResponder

protected static boolean addPreviousResponder(org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                              java.net.InetAddress pInetAddress)

getBytes

protected static byte[] getBytes(org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                 boolean pUsingMCast,
                                 boolean pUsingStreams)
                          throws ServiceLocationException
Throws:
ServiceLocationException

parseMsg

protected static org.sblim.slp.internal.ServiceLocationMessage parseMsg(java.io.DataInputStream pInputStream)
                                                                 throws ServiceLocationException
Throws:
ServiceLocationException

run

public void run()
Specified by:
run in interface java.lang.Runnable

dispatchDatagramMsg

public static ServiceLocationException dispatchDatagramMsg(org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                                           java.util.Vector pResponseList,
                                                           int[] pTimeoutList,
                                                           int pMaxResults,
                                                           java.net.InetAddress pInetAddress,
                                                           boolean pJustFirstResult)

dispatchMulticastMsg

public static java.util.Vector dispatchMulticastMsg(java.net.InetAddress pInetAddress,
                                                    java.net.DatagramSocket pDatagramSocket,
                                                    org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                                    int[] pMsTimeOutsList,
                                                    int pMaxResults,
                                                    boolean pGetFirstResult)
                                             throws ServiceLocationException
Throws:
ServiceLocationException

dispatchStreamMsg

public static org.sblim.slp.internal.ServiceLocationMessage dispatchStreamMsg(java.net.InetAddress pInetAddress,
                                                                              org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                                                              boolean pRetry)
                                                                       throws ServiceLocationException
Throws:
ServiceLocationException

dispatchUAMsg

public static java.util.Vector dispatchUAMsg(java.util.Vector pDAList,
                                             org.sblim.slp.internal.ServiceLocationMessage pRequestMsg,
                                             java.net.InetAddress pInetAddress)
                                      throws ServiceLocationException
Throws:
ServiceLocationException

dispatchDAMsg

public static ServiceLocationException dispatchDAMsg(java.util.Vector pDAList,
                                                     org.sblim.slp.internal.ServiceLocationMessage pRequest,
                                                     java.util.Vector pResults,
                                                     int pMaxReplies)

getByteArray

public static byte[] getByteArray(java.lang.String pHex)

main

public static void main(java.lang.String[] args)


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