added Listener
[org.ibex.net.git] / src / org / ibex / net / Listener.java
diff --git a/src/org/ibex/net/Listener.java b/src/org/ibex/net/Listener.java
new file mode 100644 (file)
index 0000000..6f8ca8a
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright 2000-2005 the Contributors, as shown in the revision logs.
+// Licensed under the Apache Public Source License 2.0 ("the License").
+// You may not use this file except in compliance with the License.
+
+package org.ibex.net;
+import java.net.*;
+import org.ibex.io.*;
+
+public interface Listener {
+    
+    /** returns false if the connection was not handled */
+    public boolean accept(Connection c);
+
+}