Package edu.rit.mp
Interface ConnectListener
public interface ConnectListener
Interface ConnectListener specifies the interface for an object that is
notified whenever a Channel is connected in a ChannelGroup.
- Version:
- 20-Dec-2007
- Author:
- Alan Kaminsky
-
Method Summary
Modifier and TypeMethodDescriptionvoidfarEndConnected(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 Details
-
nearEndConnected
Report that a channel was connected in the given channel group, initiated by the near end. The channel group calls thenearEndConnected()method of a registered connect listener when the channel group'sconnect()method is called by code in the same process.- Parameters:
theChannelGroup- Channel group that is calling this method.theChannel- Newly created channel.- Throws:
IOException- Thrown if an I/O error occurred.IOException- if any.
-
farEndConnected
Report that a channel was connected in the given channel group, initiated by the far end. The channel group calls thefarEndConnected()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:
IOException- Thrown if an I/O error occurred.IOException- if any.
-