com.darwinsys.net.StreamServerHandler Maven / Gradle / Ivy
package com.darwinsys.net;
import java.io.IOException;
import java.net.Socket;
/**
* The general contract of a handler for the StreamServer.
*/
public interface StreamServerHandler {
/** This is called for each request
* @param sock The input socket
* @throws IOException if the connection fails
*/
public void handle(Socket sock) throws IOException;
}