org.apache.log4j.receivers.net

## Interface SocketNodeEventListener

- All Superinterfaces:
    EventListener
  All Known Implementing Classes:
    SocketHubReceiver

      public interface SocketNodeEventListener
      extends EventListener

  Interface used to listen for `SocketNode` related events. Clients register an instance of the interface and the instance is called back when the various events occur.
  Author:
    Mark Womack, Paul Smith (psmith@apache.org)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `socketClosedEvent(Exception e)` Called when the socket the node was given has been closed.
    `void` | `socketOpened(String remoteInfo)` Called when the SocketNode is created and begins awaiting data.

- - ### Method Detail

    - #### socketOpened

          void socketOpened(String remoteInfo)

      Called when the SocketNode is created and begins awaiting data.
      Parameters:
        `remoteInfo` - remote info

    - #### socketClosedEvent

          void socketClosedEvent(Exception e)

      Called when the socket the node was given has been closed.
      Parameters:
        `e` - exception

Copyright © 2013 The Apache Software Foundation. Licensed under the Apache License, Version 2.0

Apache Extras for Apache log4j, Apache log4j and Apache are trademarks of the Apache Software Foundation.