Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改错别字 #8

Merged
merged 1 commit into from
Dec 25, 2014
Merged

修改错别字 #8

merged 1 commit into from
Dec 25, 2014

Conversation

myd7349
Copy link
Contributor

@myd7349 myd7349 commented Dec 25, 2014

我觉得这个版本的zguide翻译,质量挺不错的。谢谢你们的辛勤劳动!

此外,我有个疑问,想请教各位大婶/前辈:
我怀疑,ZeroMQ Guide中这段文字是不是有误:

The PUB-SUB socket pair is asynchronous. The client does zmq_recv(), in a loop (or once if that's all it needs). Trying to send a message to a SUB socket will cause an error. Similarly, the service does zmq_send() as often as it needs to, but must not do zmq_recv() on a PUB socket.

这里:

to a SUB socket

是否应为:

from/through a SUB socket

呢?

再次感谢!

pensz added a commit that referenced this pull request Dec 25, 2014
@pensz pensz merged commit 19e6e5a into anjuke:master Dec 25, 2014
@pensz
Copy link
Contributor

pensz commented Dec 25, 2014

我理解应该还是 to 吧。如果后面 to app , 那么才会是 through SUB socket.

@myd7349
Copy link
Contributor Author

myd7349 commented Dec 25, 2014

@pensz 谢谢你!确实有道理。哈哈。

@sp3c73r2038
Copy link

@myd7349 某觉得你讲的有点道理,这个 to 容易理解成从 PUBSUB 。但实际应该指的是 SUB 端代码往 SUB 的socket里发(是不可以的)。

@myd7349
Copy link
Contributor Author

myd7349 commented Dec 26, 2014

@aleiphoenix 嗯。我就是误解成PUB->SUB了。看来要这样子理解啊:

The client ......(怎么怎么着). (The Client)Trying to send a message to a SUB socket will cause an error. Similarly, (话锋一转)the service......(怎么怎么着)。

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants