package vicazh.hyperpool.stream.net.http;
import java.io.*;
import vicazh.hyperpool.stream.*;
class ServersConnection extends Connection {
ServersConnection(Element element) {
super(element);
}
protected Session getSession() {
return new ServersSession(this);
}
int index;
synchronized public void close() {
super.close();
notifyAll();
}
synchronized public void remove(Session session) {
super.remove(session);
if (getSessions().size() == 1)
notify();
}
Priority priority;
boolean isReverse;
public void setServer(OutputStream outputstream) throws IOException {
super.setServer(outputstream);
isReverse = getServer().isReverse();
}
}
|