Package ch.astorm.smtp4j.connection
Interface ConnectionListener
public interface ConnectionListener
Connection listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnected(InetAddress remoteHost) This method is invoked when a newSocketis connected, prior to any protocol exchange.
-
Method Details
-
connected
This method is invoked when a newSocketis connected, prior to any protocol exchange.One can use this interface to implement a simple Firewall to prevent connections from a given host just by throwing an exception.
- Parameters:
remoteHost- The remote host connected.- Throws:
IOException
-