Package org.sblim.slp.internal.sa
Class MessageTable
java.lang.Object
org.sblim.slp.internal.sa.MessageTable
public class MessageTable
extends java.lang.Object
Keeps track of datagram messages. For requests with the same XID the same
responses should be returned.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResponse
(java.net.InetAddress pSource, SLPMessage pRequest, byte[] pRespond) addResponsebyte[]
getResponse
(java.net.InetAddress pSource, SLPMessage pRequest) getResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MessageTable
public MessageTable()
-
-
Method Details
-
getResponse
public byte[] getResponse(java.net.InetAddress pSource, SLPMessage pRequest) throws ServiceLocationException getResponse- Parameters:
pSource
-pRequest
-- Returns:
- byte[]
- Throws:
ServiceLocationException
-
addResponse
public void addResponse(java.net.InetAddress pSource, SLPMessage pRequest, byte[] pRespond) throws ServiceLocationException addResponse- Parameters:
pSource
-pRequest
-pRespond
-- Throws:
ServiceLocationException
-