01: package vicazh.hyperpool.stream.net.http.html;
02:
03: import java.io.*;
04: import vicazh.hyperpool.Start;
05: import vicazh.hyperpool.stream.*;
06: import vicazh.hyperpool.stream.net.*;
07: import vicazh.hyperpool.stream.net.Stream;
08:
09: class AntivirusConnection extends Connection {
10:
11: AntivirusConnection(Element element) {
12: super (element);
13: }
14:
15: protected Session getSession() {
16: return new AntivirusSession(this );
17: }
18:
19: String client;
20:
21: public void setServer(OutputStream outputstream) throws IOException {
22: super .setServer(outputstream);
23: Socket socket = ((Stream) getServer()).getSocket();
24: client = socket == null ? Start.NAME : socket.getInetAddress()
25: .getCanonicalHostName().toLowerCase();
26: }
27: }
|