Lines Matching refs:HostapdMonitor
38 const char HostapdMonitor::kLocalPathFormat[] =
41 const char HostapdMonitor::kLocalPathFormat[] =
45 const char HostapdMonitor::kHostapdCmdAttach[] = "ATTACH";
46 const char HostapdMonitor::kHostapdRespOk[] = "OK\n";
47 const char HostapdMonitor::kHostapdEventStationConnected[] = "AP-STA-CONNECTED";
48 const char HostapdMonitor::kHostapdEventStationDisconnected[] =
50 const int HostapdMonitor::kHostapdCtrlIfaceCheckIntervalMs = 500;
51 const int HostapdMonitor::kHostapdCtrlIfaceCheckMaxAttempts = 5;
52 const int HostapdMonitor::kHostapdAttachTimeoutMs = 1000;
53 const int HostapdMonitor::kInvalidSocket = -1;
55 HostapdMonitor::HostapdMonitor(const EventCallback& callback,
72 HostapdMonitor::~HostapdMonitor() {
79 void HostapdMonitor::Start() {
81 LOG(ERROR) << "HostapdMonitor already started";
88 Bind(&HostapdMonitor::HostapdCtrlIfaceCheckTask,
93 void HostapdMonitor::HostapdCtrlIfaceCheckTask() {
104 base::Bind(&HostapdMonitor::HostapdCtrlIfaceCheckTask,
118 void HostapdMonitor::AttachToHostapd() {
154 Bind(&HostapdMonitor::ParseMessage, Unretained(this)),
155 Bind(&HostapdMonitor::OnReadError, Unretained(this))));
164 Bind(&HostapdMonitor::AttachTimeoutHandler,
171 void HostapdMonitor::AttachTimeoutHandler() {
176 bool HostapdMonitor::SendMessage(const char* message, size_t length) {
185 void HostapdMonitor::ParseMessage(shill::InputData* data) {
225 void HostapdMonitor::OnReadError(const string& error_msg) {