小编Dav*_*ley的帖子

谁能猜出这些数据包属于哪种协议?

在Telstra的NEXTG移动网络上进行下行链路文件传输时,我们看到这些数据包被注入FTP-DTP信道.我们不确定这些是否是网络级数据包,我们的3G调制解调器(基于HC25)的问题或类似我们的防火墙注入流中的问题.

使用工具我们注意到PPP成帧失败,协议长度错误,因此它们很可能是移动网络数据包.

我希望有人可以识别数据包的签名,以便我可以与适当的供应商追讨.

这些数据包肯定有一种格式: -

Packet1:00 00 00 24 c4 b8 7b 1a 00 90 7f 43 0f a1 08 00 45 00 01 10 f4 4e 00 00 40 06 2f 13 cb 7a 9d e9 7b d0 71 52 7a ed 04 06 8c 61 5d a9 01 f7 0c eb 50 10 ff ff 58 b9 00 00

Packet2:00 00 00 24 c4 b8 7b 1a 00 90 7f 43 0f a1 08 00 45 00 00 …

mobile networking protocols

4
推荐指数
1
解决办法
355
查看次数

安装openssl生成的p12密钥时,Windows会要求输入密码

如果我使用openssl生成p12证书:

openssl pkcs12 -export -in myprivatecert.pem -nokeys -out mycert.p12
Run Code Online (Sandbox Code Playgroud)

即使我要求openssl不导出私钥,为什么Windows在安装证书时仍然需要私钥密码.

我想我错过了什么.

windows openssl pkcs#12 x509

3
推荐指数
1
解决办法
2万
查看次数

枚举,构造函数重载具有类似的转换

当我将enum指定为第二个参数时,为什么VisualC++(2008)会混淆"C2666:2重载具有类似的转换",但是当我定义bool类型时却没有?

不应该键入匹配已排除第二个构造函数,因为它是'basic_string'类型?

#include <string>
using namespace std;

enum EMyEnum { mbOne, mbTwo };
class test {
public: 
#if 1 // 0 = COMPILE_OK, 1 = COMPILE_FAIL
    test(basic_string<char> myString, EMyEnum myBool2) { }
    test(bool myBool, bool myBool2) { }
#else
    test(basic_string<char> myString, bool myBool2) { }
    test(bool myBool, bool myBool2) { }
#endif
};

void testme() {
    test("test", mbOne);
}
Run Code Online (Sandbox Code Playgroud)

我可以通过指定引用来解决这个问题.basic_string&myString'但不是'const basic_string&myString'.

也通过"test((basic_string)"test",mbOne"显式调用;" 也有效.

我怀疑这与通过固有的'!= 0'解析为bool的每个表达式/类型有关.

好奇的评论都一样:)

c++ enums constructor-overloading visual-c++

3
推荐指数
1
解决办法
884
查看次数