1.2
This commit is contained in:
parent
e494a7db91
commit
69198cd6fe
2 changed files with 0 additions and 5 deletions
|
|
@ -277,7 +277,6 @@ int Program::setProperty(map<string, string> prop) {
|
||||||
});
|
});
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (exception& e) {
|
} catch (exception& e) {
|
||||||
cerr << "Exception: " << e.what() << "\n";
|
cerr << "Exception: " << e.what() << "\n";
|
||||||
}
|
}
|
||||||
|
|
@ -405,7 +404,6 @@ int Program::get(Packet l, datasets t, Listener c) {
|
||||||
p.setSwitchMac(l.getSwitchMac());
|
p.setSwitchMac(l.getSwitchMac());
|
||||||
p.setHostMac(host.getMac());
|
p.setHostMac(host.getMac());
|
||||||
p.setPayload(t);
|
p.setPayload(t);
|
||||||
//cout << "listen REPLY from "<<l.getSwitchMac()<<endl;
|
|
||||||
sock->listen(c, Filter(Packet::REPLY).mac(l.getSwitchMac()));
|
sock->listen(c, Filter(Packet::REPLY).mac(l.getSwitchMac()));
|
||||||
sock->send(p);
|
sock->send(p);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -421,7 +419,6 @@ int Program::set(Packet l, datasets t, Listener c) {
|
||||||
datasets ld = { { LOGIN_USER, (short) (n.size()), n }, { LOGIN_PASSWORD,
|
datasets ld = { { LOGIN_USER, (short) (n.size()), n }, { LOGIN_PASSWORD,
|
||||||
(short) (w.size()), w } };
|
(short) (w.size()), w } };
|
||||||
p.setPayload(ld + t);
|
p.setPayload(ld + t);
|
||||||
//cout << "listen CONFIRM from "<<l.getSwitchMac()<<endl;
|
|
||||||
sock->listen(c, Filter(Packet::CONFIRM).mac(l.getSwitchMac()));
|
sock->listen(c, Filter(Packet::CONFIRM).mac(l.getSwitchMac()));
|
||||||
sock->send(p);
|
sock->send(p);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,7 @@
|
||||||
* Author: jdi
|
* Author: jdi
|
||||||
*/
|
*/
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "Socket.h"
|
#include "Socket.h"
|
||||||
#include "Packet.h"
|
#include "Packet.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue