100
Requestion action was initiated; expect another reply before proceeding with a new command.
200
Requested action has been successfully completed
400
The command was accepted but the requested action did not take place.
500
The command was not accepted and the requested action did not take place.
600
Unsolicited broadcasts

class ResponseCode {
// Keep in sync with
// frameworks/base/services/java/com/android/server/NetworkManagementService.java
public:
// 100 series - Requestion action was initiated; expect another reply
// before proceeding with a new command.
static const int ActionInitiated = 100;
static const int InterfaceListResult = 110;
static const int TetherInterfaceListResult = 111;
static const int TetherDnsFwdTgtListResult = 112;
static const int TtyListResult = 113;
static const int TetheringStatsListResult = 114;

// 200 series - Requested action has been successfully completed
static const int CommandOkay = 200;
static const int TetherStatusResult = 210;
static const int IpFwdStatusResult = 211;
static const int InterfaceGetCfgResult = 213;
static const int SoftapStatusResult = 214;
static const int UsbRNDISStatusResult = 215;
static const int InterfaceRxCounterResult = 216;
static const int InterfaceTxCounterResult = 217;
static const int InterfaceRxThrottleResult = 218;
static const int InterfaceTxThrottleResult = 219;
static const int QuotaCounterResult = 220;
static const int TetheringStatsResult = 221;
static const int DnsProxyQueryResult = 222;
static const int ClatdStatusResult = 223;
static const int InterfaceGetMtuResult = 224;
static const int GetMarkResult = 225;
static const int RouteConfigurationResult = 226;
static const int V6RtrAdvResult = 227;

// 400 series - The command was accepted but the requested action
// did not take place.
static const int OperationFailed = 400;
static const int DnsProxyOperationFailed = 401;
static const int ServiceStartFailed = 402;
static const int ServiceStopFailed = 403;

// 500 series - The command was not accepted and the requested
// action did not take place.
static const int CommandSyntaxError = 500;
static const int CommandParameterError = 501;

// 600 series - Unsolicited broadcasts
static const int InterfaceChange = 600;
static const int BandwidthControl = 601;
static const int ServiceDiscoveryFailed = 602;
static const int ServiceDiscoveryServiceAdded = 603;
static const int ServiceDiscoveryServiceRemoved = 604;
static const int ServiceRegistrationFailed = 605;
static const int ServiceRegistrationSucceeded = 606;
static const int ServiceResolveFailed = 607;
static const int ServiceResolveSuccess = 608;
static const int ServiceSetHostnameFailed = 609;
static const int ServiceSetHostnameSuccess = 610;
static const int ServiceGetAddrInfoFailed = 611;
static const int ServiceGetAddrInfoSuccess = 612;
static const int InterfaceClassActivity = 613;
static const int InterfaceAddressChange = 614;
};

netd ResponseCode的更多相关文章

  1. [设计模式]Netd中的命令设计模式

    命令模式 有如下的角色: (1)调用者(invoker) (2)命令接收者(receiver) (3)客户端(client) (4)命令对象(command) public interface Com ...

  2. [android]netd与NetworkManagementService初印象

    [功能]Netd是什么,主要负责什么功能 为什么这次会接触Netd主要是因为在设置防火墙时候碰到了.关于Netd可以干什么可以从Netd的源码中CommandListener中得到答案.按照我的理解, ...

  3. Netd学习笔记

    service netd /system/bin/netd     class main     socket netd stream 0660 root system     socket dnsp ...

  4. HTTP.ResponseCode

    HTTP响应码: http://blog.csdn.net/cutbug/article/details/4024818

  5. asp.net请求编译流程图(其实就是说asp.netd代码是如何转成中间代码IL然后交给cpu执行的)

  6. BEA-141150 - An error occurred while preparing application component uri of application application with HTTP response responseCode: message

    网上查询的 Cause:This is either because the resource it self is not available on the administration serve ...

  7. Android中的socket本地通讯框架

    一.先分析Native层: 1.C++基类SocketListener: class SocketListener {     int mSock;     const char *mSocketNa ...

  8. lollipop_softap启动wifi ap失败

    最近一直在调试lollipop,翻译成中文好像是棒棒糖的意思,就是个wifi控制管理工具,比如设置DLNA或者WFD模式等,其原理是通过本地通信工具sockets控制其他接口来启动wpa_suplic ...

  9. 猫哥网络编程系列:HTTP PEM 万能调试法

    注:本文内容较长且细节较多,建议先收藏再阅读,原文将在 Github 上维护与更新. 在 HTTP 接口开发与调试过程中,我们经常遇到以下类似的问题: 为什么本地环境接口可以调用成功,但放到手机上就跑 ...

随机推荐

  1. luogu2455 [SDOI2006]线性方程组 高斯消元法

    #include <iostream> #include <cstdio> #include <cmath> using namespace std; int n, ...

  2. ogre3D学习基础8 --- 资源管理器

    资源管理 可管理的资源有: 材质资源:在.material文件中包含的材质脚本定义(技术.通路.纹理单元等数据的定义). 模型资源:经过优化的二进制网格模型文件,扩展名为.mesh.包含几何信息和一些 ...

  3. Ext.js给form加背景图片

    { iconCls: 'zyl_icons_showdetail', tooltip: '查看', handler: function(gridView, rowIndex, colIndex) { ...

  4. 【LeetCode】Reverse Integer(整数反转)

    这道题是LeetCode里的第7道题. 题目描述: 给出一个 32 位的有符号整数,你需要将这个整数中每位上的数字进行反转. 示例 1: 输入: 123 输出: 321  示例 2: 输入: -123 ...

  5. 《机器学习实战》笔记——regression

    本章介绍了不同场景下使用的线性回归方法 一般情况:简单的线性回归 欠拟合:局部加权线性回归 特征数大于样本数:岭回归 或 lasso法 最后引出交叉验证,用来定量地找到最佳参数值 # _*_ codi ...

  6. Spring中的注解 @Qualifier

    在使用Spring框架中@Autowired标签时默认情况下使用 @Autowired 注释进行自动注入时,Spring 容器中匹配的候选 Bean 数目必须有且仅有一个.当找不到一个匹配的 Bean ...

  7. POJ 1315 Don't Get Rooked

    Don't Get Rooked Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 2086   Accepted: 1325 ...

  8. 解决在IE6、7中用height来设定SELECT标签高度无效的兼容性问题

    在IE6.7中用height来设定SELECT标签高度是无效的,宽度的话各浏览器设置都是一致的,解决方法就是在select外嵌套两层标签,一层用来遮挡select的默认边框(在IE6.7中设置bord ...

  9. bzoj4717 改装 模拟+二分

    Description [题目背景] 小Q最近喜欢上了一款游戏,名为<舰队connection>,在游戏中,小Q指挥强大的舰队南征北战,从而成为了一名dalao.在游戏中,不仅船只能力很重 ...

  10. python hashlib模块 logging模块 subprocess模块

    一 hashlib模块 import hashlib md5=hashlib.md5() #可以传参,加盐处理 print(md5) md5.update(b'alex') #update参数必须是b ...