All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.net.SocketHandler Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.net;

import java.io.IOException;
import java.net.Socket;

public interface SocketHandler {

    /**
     * @param socket
     *            套接层
     */
    void handle(Socket socket) throws IOException;

    /**
     * 当发生 IO 异常的时候调用
     * 
     * @param e
     *            异常
     * @param socket
     *            套接层
     */
    void whenError(Socket socket, Throwable e);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy