001package jmri.jmrit.logixng; 002 003/** 004 * A listener for when a socket is connected or disconnected. 005 * 006 * @author Daniel Bergqvist Copyright 2018 007 */ 008public interface FemaleSocketListener { 009 010 /** 011 * The socket is connected. 012 * @param socket the socket 013 */ 014 void connected(FemaleSocket socket); 015 016 /** 017 * The socket is disconnected. 018 * @param socket the socket 019 */ 020 void disconnected(FemaleSocket socket); 021 022 /** 023 * The socket name is changed. 024 * @param socket the socket 025 */ 026 default void socketNameChanged(FemaleSocket socket) { 027 // Do nothing 028 } 029 030}