从zmq4套接字获取对等方的公钥

时间:2019-01-06 19:57:06

标签: zeromq

我创建了一个REQ / REP情况,每个主机都通过https://github.com/pebbe/zmq4(CURVE)提供的认证机制进行了认证。

我想知道每个端点在服务器端是谁。当他们发送消息时,我想从套接字或类似的东西中提取他们的密钥。我不想让客户说出他们的真实身份,而是使用套接字中的信息进行验证。现在, Original array counts 12 elements: "zero, one, two, two, three, two, four, zero, four, three, five, five" Filtered array counts 6 elements: "zero, one, two, three, four, five" 之类的方法在服务器(REP)端接收后返回nil。我在做什么错了?

0 个答案:

没有答案