edu.rit.mp
Interface ConnectListener
-
public interface ConnectListenerInterface ConnectListener specifies the interface for an object that is notified whenever a Channel is connected in a ChannelGroup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidfarEndConnected(ChannelGroup theChannelGroup, Channel theChannel)Report that a channel was connected in the given channel group, initiated by the far end.voidnearEndConnected(ChannelGroup theChannelGroup, Channel theChannel)Report that a channel was connected in the given channel group, initiated by the near end.
-
-
-
Method Detail
-
nearEndConnected
void nearEndConnected(ChannelGroup theChannelGroup, Channel theChannel) throws java.io.IOException
Report that a channel was connected in the given channel group, initiated by the near end. The channel group calls the nearEndConnected() method of a registered connect listener when the channel group's connect() method is called by code in the same process.- Parameters:
theChannelGroup- Channel group that is calling this method.theChannel- Newly created channel.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
farEndConnected
void farEndConnected(ChannelGroup theChannelGroup, Channel theChannel) throws java.io.IOException
Report that a channel was connected in the given channel group, initiated by the far end. The channel group calls the farEndConnected() method of a registered connect listener when an incoming connection request is received from another process.- Parameters:
theChannelGroup- Channel group that is calling this method.theChannel- Newly created channel.- Throws:
java.io.IOException- Thrown if an I/O error occurred.
-
-
DMelt 3.0 © DataMelt by jWork.ORG