01: package vicazh.hyperpool.stream.net;
02:
03: import java.io.*;
04: import java.net.Socket;
05: import vicazh.hyperpool.stream.*;
06:
07: class InConnection extends Connection {
08: private Socket socket;
09:
10: InConnection(Element element, Socket socket) {
11: super (element);
12: this .socket = socket;
13: }
14:
15: public void setServer(OutputStream outputstream) {
16: setServer(new SocketStream(this , outputstream,
17: new vicazh.hyperpool.stream.net.Socket(socket)));
18: }
19:
20: public void close() {
21: try {
22: socket.close();
23: } catch (Exception e) {
24: }
25: super.close();
26: }
27: }
|