Interface SocketListener.OnEvent

Enclosing class:
SocketListener
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface SocketListener.OnEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(int event, Socket socket)
    Emitted when @listener's activity on @socket changes state.
  • Method Details

    • onEvent

      void onEvent(int event, @Nonnull Socket socket)
      Emitted when @listener's activity on @socket changes state.
      Note that when @listener is used to listen on both IPv4 and
      IPv6, a separate set of signals will be emitted for each, and
      the order they happen in is undefined.
      Parameters:
      event - the event that is occurring
      socket - the #GSocket the event is occurring on