package sock; import java.util.EventObject; // // your interface may differ significantly ... // public interface SocketListener { public void sent(SocketEvent e); public void received(SocketEvent e); }