com.darwinsys.net.StreamServerHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of darwinsys-api Show documentation
Show all versions of darwinsys-api Show documentation
Ian Darwin's assorted Java stuff,
assembled as an API.
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;
}