01: /*
02: * Copyright (c) 2000 by Matt Welsh and The Regents of the University of
03: * California. All rights reserved.
04: *
05: * Permission to use, copy, modify, and distribute this software and its
06: * documentation for any purpose, without fee, and without written agreement is
07: * hereby granted, provided that the above copyright notice and the following
08: * two paragraphs appear in all copies of this software.
09: *
10: * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
11: * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
12: * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
13: * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14: *
15: * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
16: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
17: * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18: * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
19: * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
20: *
21: * Author: Matt Welsh <mdw@cs.berkeley.edu>
22: *
23: */
24:
25: package seda.sandStorm.lib.aSocket;
26:
27: import seda.sandStorm.api.*;
28:
29: import java.io.*;
30: import java.net.*;
31:
32: /**
33: * Request to establish a connection.
34: */
35: public class ATcpConnectRequest extends aSocketRequest implements
36: QueueElementIF {
37:
38: public ATcpClientSocket clisock;
39: public SinkIF compQ;
40: public InetAddress addr;
41: public int port;
42: public int writeClogThreshold;
43: public int connectClogTries;
44:
45: public ATcpConnectRequest(ATcpClientSocket clisock,
46: InetAddress addr, int port, SinkIF compQ,
47: int writeClogThreshold, int connectClogTries) {
48: this.clisock = clisock;
49: this.compQ = compQ;
50: this.addr = addr;
51: this.port = port;
52: this.writeClogThreshold = writeClogThreshold;
53: this.connectClogTries = connectClogTries;
54: }
55:
56: }
|