40 |
|
* @param configManager a reference to the ConfigurationManager we are using |
41 |
|
* @param port The port that the server will listen on. |
42 |
|
*/ |
43 |
< |
public TCPReader(int port, Filter parent) { |
43 |
> |
public TCPReader(int port, Queue queue) { |
44 |
|
_port = port; |
45 |
< |
_parent = parent; |
45 |
> |
_queue = queue; |
46 |
|
_logger.write(toString(), Logger.SYSINIT, "started"); |
47 |
|
} |
48 |
|
|
95 |
|
if(run){ |
96 |
|
try { |
97 |
|
// Setup the HostInit so it can carry on communications with the host |
98 |
< |
TCPReaderInit init = new TCPReaderInit(hostSocket, _parent); |
98 |
> |
TCPReaderInit init = new TCPReaderInit(hostSocket, _queue); |
99 |
|
// and start it |
100 |
|
init.start(); |
101 |
|
} catch (IOException e) { |
151 |
|
*/ |
152 |
|
private int _port; |
153 |
|
|
154 |
< |
private Filter _parent; |
154 |
> |
private Queue _queue; |
155 |
|
|
156 |
|
//---STATIC ATTRIBUTES--- |
157 |
|
|