⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 btdev.cpp

📁 It s a tool designed to extract as much information as possible from Bluetooth devices without the r
💻 CPP
字号:
/* -*- c++ -*- ---------------------------------------------------------------   Copyright (C) 2005, SWECO, All Rights Reserved.   Maintenance functions for bluetooth application server   Author: Zsolt Molnar (Zsolt.Molnar@ieee.org)   ---------------------------------------------------------------------------*/#include <string>#include <iostream>#include <fstream>#include "base.hh"void usage(const string& aProcName){	cout << endl << "Usage: " << endl << endl 		 << "\t" << aProcName << " reset|ban <bt_addr>" << endl << endl;}int main(int argc, char** argv) {	if (argc == 3) {		if (string(argv[1]) == "reset") {			ofstream out(CFG_RESET_FILENAME, ios::app);			out << argv[2] << endl;		} else if (string(argv[1]) == "ban") {			ofstream out(CFG_BAN_FILENAME, ios::app);			out << argv[2] << endl;		} else {			goto ERR;		}		return 1;	}ERR:	usage(argv[0]);	return -1;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -