cloud test
This commit is contained in:
@@ -3,14 +3,22 @@
|
||||
|
||||
DispatcherClient::DispatcherClient(PIEthernet * eth_) {
|
||||
eth = eth_;
|
||||
CONNECTU(&disconnect_tm, tickEvent, eth, close);
|
||||
eth->startThreadedRead();
|
||||
CONNECTU(eth, threadedReadEvent, this, readed);
|
||||
CONNECTU(eth, disconnected, this, disconnected);
|
||||
piCoutObj << "client connected" << eth->sendAddress();
|
||||
disconnect_tm.start(10000);
|
||||
}
|
||||
|
||||
|
||||
DispatcherClient::~DispatcherClient() {
|
||||
// delete eth;
|
||||
}
|
||||
|
||||
|
||||
PIString DispatcherClient::address() {
|
||||
return eth->path();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user