IMudInterface
public interface ImudServices
Modifier and Type | Method | Description |
---|---|---|
boolean |
addChannel(ChannelsLibrary.CMChannel chan) |
Add a new channel
|
boolean |
delChannel(java.lang.String remoteChannelName) |
Remove a channel
|
java.util.Enumeration<java.lang.String> |
getChannels() |
|
long |
getLastPacketReceivedTime() |
|
java.lang.String |
getLocalChannel(java.lang.String cmd) |
Given a I3 channel name, this method should provide
the local name for that channel.
|
java.lang.String |
getMudName() |
|
int |
getMudPort() |
|
java.lang.String |
getMudState() |
|
java.lang.String |
getMudVersion() |
|
java.lang.String |
getRemoteChannel(java.lang.String cmd) |
Given a local channel name, returns the remote
channel name.
|
java.lang.String |
getRemoteMask(java.lang.String cmd) |
Returns the mask of a remote channel
|
void |
receive(Packet packet) |
Handles an incoming I3 packet asynchronously.
|
void |
resetLastPacketReceivedTime() |
reset the last packet received time
|
void receive(Packet packet)
packet
- the incoming packetjava.util.Enumeration<java.lang.String> getChannels()
java.lang.String getLocalChannel(java.lang.String cmd)
cmd
- the remote name of the desired channelgetRemoteChannel(java.lang.String)
java.lang.String getMudVersion()
java.lang.String getMudName()
java.lang.String getRemoteMask(java.lang.String cmd)
cmd
- the remote channelboolean addChannel(ChannelsLibrary.CMChannel chan)
chan
- the channel to addboolean delChannel(java.lang.String remoteChannelName)
remoteChannelName
- the i3 channel to removejava.lang.String getMudState()
int getMudPort()
long getLastPacketReceivedTime()
void resetLastPacketReceivedTime()
java.lang.String getRemoteChannel(java.lang.String cmd)
cmd
- the local name of the desired channel