01: package vicazh.hyperpool.stream.net;
02:
03: /**
04: * The UDP out service
05: *
06: * @author Victor Zhigunov
07: * @version 0.4.0
08: */
09: public class UDPOutService extends OutService implements
10: UDPOutServiceMBean {
11: public UDPOutService() {
12: }
13:
14: int size;
15:
16: /**
17: * @param timeout
18: * socket timeout
19: * @param size
20: * packet size
21: */
22: public UDPOutService(int timeout, int size) {
23: super (timeout);
24: this .size = size;
25: }
26:
27: public Connection getConnection() {
28: return new UDPOutConnection(this);
29: }
30: }
|