01: package vicazh.hyperpool.stream.net.socks;
02:
03: import java.io.*;
04: import vicazh.hyperpool.stream.*;
05:
06: /**
07: * This class is the superclass of all socks connections
08: *
09: * @author Victor Zhigunov
10: * @version 0.3.14
11: */
12: public class Connection extends vicazh.hyperpool.stream.net.Connection {
13: public Connection() {
14: }
15:
16: /**
17: * @param element
18: * parent element
19: */
20: public Connection(Element element) {
21: super (element);
22: }
23:
24: public void setClient(OutputStream outputstream) throws IOException {
25: setClient(new ClientStream(this , outputstream));
26: }
27:
28: public void setServer(OutputStream outputstream) throws IOException {
29: setServer(new ServerStream(this, outputstream));
30: }
31: }
|