01: package vicazh.hyperpool.stream.net.socks;
02:
03: import java.net.*;
04: import vicazh.hyperpool.stream.net.Connection;
05:
06: /**
07: * The in service
08: *
09: * @author Victor Zhigunov
10: * @version 0.4.0
11: */
12: public class InService extends vicazh.hyperpool.stream.net.InService {
13: public InService() {
14: }
15:
16: int size;
17:
18: /**
19: * @param msg
20: * port use message
21: * @param timeout
22: * socket timeout
23: * @param size
24: * packet size
25: */
26: public InService(String msg, int timeout, int size) {
27: super (msg, timeout);
28: this .size = size;
29: }
30:
31: protected Connection getConnection(Socket socket) {
32: return new InConnection(this, socket);
33: }
34: }
|