All Packages Class Hierarchy This Package Previous Next Index
Class lava.net.mmp.MMPMessageCenter
java.lang.Object
|
+----lava.net.mmp.MMPCenter
|
+----lava.net.mmp.MMPMessageCenter
- public class MMPMessageCenter
- extends MMPCenter
-
closeOnMaxConnections
- Do we close peers overriding the maxConnections limit?
Note: Such overriding CAN be but MUST NOT be a
denial of service attack!
Note: This should be more intelligent in further versions.
-
counterTag
- The MMP variable describing a packet counter of a MMP connection.
-
defaultPort
- The well known port used by this protocol.
-
defaultProtocol
- The default underlying network protocol used by this protocol.
-
defaultResource
- The default Resource used if there is no in UNAs.
-
defaultScheme
- The default scheme used in UNAs (Uniform Network Locators) by this
protocol.
-
initializeTag
- The MMP variable describing a variable state reset of a MMP connection.
-
lengthTag
- The MMP variable describing the length of a body of a MMP packet.
-
manager
- The MMPPacketManager.
-
maxConnections
- The maximum number of open connections.
-
maxVariables
- The maximum number of permanent variables per connection.
-
ProtocolMajorVersion
- The major version number of the protocol implemented here.
-
ProtocolMinorVersion
- The minor version number of the protocol implemented here.
-
ProtocolName
- The official name of the protocol implemented here.
-
protocols
- All known underlying network protocols used by this protocol.
-
sourceTag
- The MMP variable describing the source of a MMP packet.
-
targetTag
- The MMP variable describing the target of a MMP packet.
-
MMPMessageCenter(MMPPacketManager)
-
-
MMPMessageCenter(MMPPacketManager, boolean)
-
-
MMPMessageCenter(MMPPacketManager, UNA[])
-
-
addAlias(String, String)
-
-
addDispatcher(String, MMPDispatcher)
-
-
addGreetingVariable(String, VariableModifier)
- Adds a Variable only to every outgoing greeting Packet for
the specified protocol.
-
addGreetingVariable(UNA, VariableModifier)
- Adds a Variable only to every outgoing greeting Packet for
the specified UNA.
-
addGreetingVariable(VariableModifier)
- Adds a Variable to every outgoing greeting Packet.
-
answerCounterWithCounter(boolean)
-
-
assignVariable(UNA, String, Value)
-
-
assignVariable(UNA, UNA, String, Value)
-
-
augmentVariable(UNA, String, Value)
-
-
augmentVariable(UNA, UNA, String, Value)
-
-
broadcast(MMPPacket)
-
-
broadcast(UNA, MMPPacket)
-
-
close()
-
-
close(UNA)
-
-
close(UNA, UNA)
-
-
diminishVariable(UNA, String, Value)
-
-
diminishVariable(UNA, UNA, String, Value)
-
-
getAllRemotes()
-
-
getAllRemotes(UNA)
-
-
getDispatcher(UNA)
-
-
getListenLocations()
-
-
getLocal(UNA)
-
-
getLocalHost()
-
-
getValue(UNA, String)
-
-
getValue(UNA, UNA, String)
-
-
getVars(UNA)
-
-
getVars(UNA, UNA)
-
-
listen(UNA)
-
-
removeAlias(String)
-
-
removeDispatcher(String)
-
-
removeListenLocation(UNA)
-
-
removeValue(UNA, String)
-
-
removeValue(UNA, UNA, String)
-
-
send(UNA, MMPPacket)
-
-
send(UNA, UNA, MMPPacket)
-
-
sendGreeting(UNA, UNA)
-
-
setDefaults()
-
-
setManager(MMPPacketManager)
-
-
setProxy(String, UNA)
- Sets or - if proxy is null - removes a proxy for a specific
protocol or - if protocol is null - for every packet at all.
-
setSchemeProxy(String, UNA)
-
-
usingProtocols()
-
ProtocolName
public static final String ProtocolName
- The official name of the protocol implemented here.
ProtocolMajorVersion
public static final int ProtocolMajorVersion
- The major version number of the protocol implemented here.
ProtocolMinorVersion
public static final int ProtocolMinorVersion
- The minor version number of the protocol implemented here.
defaultScheme
public static final String defaultScheme
- The default scheme used in UNAs (Uniform Network Locators) by this
protocol.
defaultPort
public static final int defaultPort
- The well known port used by this protocol.
defaultProtocol
public static final String defaultProtocol
- The default underlying network protocol used by this protocol.
protocols
public static final String protocols[]
- All known underlying network protocols used by this protocol.
defaultResource
public static final String defaultResource
- The default Resource used if there is no in UNAs.
maxVariables
public static int maxVariables
- The maximum number of permanent variables per connection.
This is to prevent denial of service.
Numbers smaller than 1 are considered infinite.
maxConnections
public static int maxConnections
- The maximum number of open connections.
This is to prevent denial of service.
Numbers smaller than 1 are considered infinite.
closeOnMaxConnections
public static boolean closeOnMaxConnections
- Do we close peers overriding the maxConnections limit?
Note: Such overriding CAN be but MUST NOT be a
denial of service attack!
Note: This should be more intelligent in further versions.
lengthTag
public static final String lengthTag
- The MMP variable describing the length of a body of a MMP packet.
sourceTag
public static final String sourceTag
- The MMP variable describing the source of a MMP packet.
targetTag
public static final String targetTag
- The MMP variable describing the target of a MMP packet.
initializeTag
public static final String initializeTag
- The MMP variable describing a variable state reset of a MMP connection.
counterTag
public static final String counterTag
- The MMP variable describing a packet counter of a MMP connection.
manager
public MMPPacketManager manager
- The MMPPacketManager. To this instance every information about
received packets, errors and so on is sent.
MMPMessageCenter
public MMPMessageCenter(MMPPacketManager manager)
MMPMessageCenter
public MMPMessageCenter(MMPPacketManager manager,
boolean listen)
MMPMessageCenter
public MMPMessageCenter(MMPPacketManager manager,
UNA listenLocations[])
getLocalHost
public static String getLocalHost()
setDefaults
public static void setDefaults()
addDispatcher
public MMPDispatcher addDispatcher(String protocol,
MMPDispatcher dispatcher)
getDispatcher
public MMPDispatcher getDispatcher(UNA remote)
removeDispatcher
public MMPDispatcher removeDispatcher(String protocol)
usingProtocols
public Value usingProtocols()
- Overrides:
- usingProtocols in class MMPCenter
listen
public void listen(UNA listenLocation) throws IOException
removeListenLocation
public void removeListenLocation(UNA listenLocation)
getListenLocations
public UNA[] getListenLocations()
- Overrides:
- getListenLocations in class MMPCenter
setManager
public void setManager(MMPPacketManager manager)
- Overrides:
- setManager in class MMPCenter
setSchemeProxy
public void setSchemeProxy(String scheme,
UNA proxy)
setProxy
public void setProxy(String protocol,
UNA proxy)
- Sets or - if proxy is null - removes a proxy for a specific
protocol or - if protocol is null - for every packet at all.
Default: no proxies at all.
answerCounterWithCounter
public void answerCounterWithCounter(boolean counter)
addAlias
public void addAlias(String alias,
String longVar)
removeAlias
public String removeAlias(String alias)
getVars
public String[] getVars(UNA remote)
- Overrides:
- getVars in class MMPCenter
getVars
public String[] getVars(UNA remote,
UNA local)
- Overrides:
- getVars in class MMPCenter
getValue
public Value getValue(UNA remote,
String name)
- Overrides:
- getValue in class MMPCenter
getValue
public Value getValue(UNA remote,
UNA local,
String name)
- Overrides:
- getValue in class MMPCenter
removeValue
public Value removeValue(UNA remote,
String name)
- Overrides:
- removeValue in class MMPCenter
removeValue
public Value removeValue(UNA remote,
UNA local,
String name)
- Overrides:
- removeValue in class MMPCenter
close
public void close()
- Overrides:
- close in class MMPCenter
close
public void close(UNA remote)
- Overrides:
- close in class MMPCenter
close
protected void close(UNA remote,
UNA local)
- Overrides:
- close in class MMPCenter
addGreetingVariable
public void addGreetingVariable(VariableModifier modifier)
- Adds a Variable to every outgoing greeting Packet.
addGreetingVariable
public void addGreetingVariable(String protocol,
VariableModifier modifier)
- Adds a Variable only to every outgoing greeting Packet for
the specified protocol.
A protocol value of null means default protocol.
addGreetingVariable
public void addGreetingVariable(UNA remote,
VariableModifier modifier)
- Adds a Variable only to every outgoing greeting Packet for
the specified UNA.
sendGreeting
public void sendGreeting(UNA remote,
UNA local)
getLocal
public UNA getLocal(UNA remote)
- Overrides:
- getLocal in class MMPCenter
assignVariable
public void assignVariable(UNA remote,
String name,
Value value)
- Overrides:
- assignVariable in class MMPCenter
assignVariable
public void assignVariable(UNA remote,
UNA local,
String name,
Value value)
- Overrides:
- assignVariable in class MMPCenter
augmentVariable
public void augmentVariable(UNA remote,
String name,
Value value)
- Overrides:
- augmentVariable in class MMPCenter
augmentVariable
public void augmentVariable(UNA remote,
UNA local,
String name,
Value value)
- Overrides:
- augmentVariable in class MMPCenter
diminishVariable
public void diminishVariable(UNA remote,
String name,
Value value)
- Overrides:
- diminishVariable in class MMPCenter
diminishVariable
public void diminishVariable(UNA remote,
UNA local,
String name,
Value value)
- Overrides:
- diminishVariable in class MMPCenter
send
public void send(UNA remote,
MMPPacket packet)
- Overrides:
- send in class MMPCenter
send
public void send(UNA remote,
UNA local,
MMPPacket packet)
- Overrides:
- send in class MMPCenter
getAllRemotes
public Enumeration getAllRemotes()
- Overrides:
- getAllRemotes in class MMPCenter
getAllRemotes
public Enumeration getAllRemotes(UNA local)
- Overrides:
- getAllRemotes in class MMPCenter
broadcast
public void broadcast(MMPPacket packet)
- Overrides:
- broadcast in class MMPCenter
broadcast
public void broadcast(UNA local,
MMPPacket packet)
- Overrides:
- broadcast in class MMPCenter
All Packages Class Hierarchy This Package Previous Next Index