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