/[eiffelstudio]/branches/eth/eve/Src/library/zeromq/wrapper/zmq_socket_types.e
ViewVC logotype

Contents of /branches/eth/eve/Src/library/zeromq/wrapper/zmq_socket_types.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 92811 - (show annotations)
Fri Jul 26 04:35:53 2013 UTC (6 years, 2 months ago) by jasonw
File size: 3149 byte(s)
<<Merged from trunk#92810.>>
1 note
2 description: "Types of sockets."
3 author: ""
4 date: "$Date$"
5 revision: "$Revision$"
6 EIS: "name=Socket Types", "src=http://api.zeromq.org/3-3:zmq-socket", "protocol=uri"
7
8 class
9 ZMQ_SOCKET_TYPES
10
11 feature -- Socket types : Request-Replay Pattern
12
13 zmq_req: INTEGER_32
14 -- A socket type to send requests and receive replies. Requests
15 -- are load-balanced among all the peers. This socket type allows
16 -- only an alternated sequence of send's and recv's.
17
18 -- Compatible peer sockets: ZMQ_REP, ZMQ_XREP.
19 external
20 "C inline use <zmq.h>"
21 alias
22 "ZMQ_REQ"
23 end
24
25 zmq_rep: INTEGER_32
26 -- A socket type to receive requests and send replies. This socket
27 -- type allows only an alternated sequence of recv's and send's.
28 -- Each send is routed to the peer that issued the last
29 -- received request.
30
31 -- Compatible peer sockets: ZMQ_REQ, ZMQ_XREQ.
32 external
33 "C inline use <zmq.h>"
34 alias
35 "ZMQ_REP"
36 end
37
38 zmq_router: INTEGER_32
39 -- A socket of type ZMQ_ROUTER is an advanced socket type used for extending request/reply sockets.
40 -- When receiving messages a ZMQ_ROUTER socket shall prepend a message part containing the identity of
41 -- the originating peer to the message before passing it to the application.
42 -- Messages received are fair-queued from among all connected peers.
43 -- When sending messages a ZMQ_ROUTER socket shall remove the first part of the message and use
44 -- it to determine the identity of the peer the message shall be routed to.
45 -- If the peer does not exist anymore the message shall be silently discarded by default,
46 -- unless ZMQ_ROUTER_BEHAVIOR socket option is set to 1.
47
48 -- Deprecated alias: ZMQ_XREP.
49 -- Compatible peer sockets ZMQ_DEALER, ZMQ_REQ, ZMQ_ROUTER.
50 external
51 "C inline use <zmq.h>"
52 alias
53 "ZMQ_ROUTER"
54 end
55
56 zmq_dealer: INTEGER_32
57 -- A socket of type ZMQ_DEALER is an advanced pattern used for extending request/reply sockets.
58 -- Each message sent is round-robined among all connected peers, and each message received is fair-queued from all connected peers.
59
60 -- Deprecated alias: ZMQ_XREQ.
61 -- Compatible peer sockets ZMQ_ROUTER, ZMQ_REP, ZMQ_DEALER
62 external
63 "C inline use <zmq.h>"
64 alias
65 "ZMQ_DEALER"
66 end
67
68 feature -- Socket Types: Exclusive pair pattern
69
70 zmq_pair: INTEGER_32
71 --
72 external
73 "C inline use <zmq.h>"
74 alias
75 "ZMQ_PAIR"
76 end
77
78 feature -- Socket types: Publish-subscribe pattern
79
80 zmq_pub: INTEGER_32
81 -- A socket type to distribute data. Recv fuction is not
82 -- implemented for this socket type. Messages are distributed in
83 -- fanout fashion to all the peers.
84
85 -- Compatible peer sockets: ZMQ_SUB.
86 external
87 "C inline use <zmq.h>"
88 alias
89 "ZMQ_PUB"
90 end
91
92 zmq_sub: INTEGER_32
93 -- A socket type to subscribe for data. Send function is not
94 -- implemented for this socket type. Initially, socket is
95 -- subscribed for no messages. Use ZMQ_SUBSCRIBE option to
96 -- specify which messages to subscribe for.
97
98 -- Compatible peer sockets: ZMQ_PUB.
99 external
100 "C inline use <zmq.h>"
101 alias
102 "ZMQ_SUB"
103 end
104
105 end -- class ZMQ_SOCKET_TYPES

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23