dimint / dimint-overlord

0 stars 0 forks source link

통신 프로토콜 정의 및 구현 : overlord to node, node to overlord 프로토콜 정의 #2

Closed jsryu21 closed 9 years ago

jsryu21 commented 9 years ago

Two different ports for _ZMQ_SUB_s(overlord as a subscriber, node as a subscriber) are required.

A socket of type _ZMQPUB is used by a publisher to distribute data. Messages sent are distributed in a fan out fashion to all connected peers. The _zmqrecv(3) function is not implemented for this socket type.

A socket of type _ZMQSUB is used by a subscriber to subscribe to data distributed by a publisher. Initially a _ZMQSUB socket is not subscribed to any messages, use the _ZMQSUBSCRIBE option of _zmqsetsockopt(3) to specify which messages to subscribe to. The _zmqsend() function is not implemented for this socket type.

jc-kim commented 9 years ago

프로토콜 정의는 거의 끝낸 것 같음.(위키 참조) 구현하다가 필요해 보이는 건 추가로 써주면 될 듯.

jsryu21 commented 9 years ago