OpenMAMA
dqpublisher.h
Go to the documentation of this file.
1 /* $Id$
2  *
3  * OpenMAMA: The open middleware agnostic messaging API
4  * Copyright (C) 2011 NYSE Technologies, Inc.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 
22 #ifndef MAMA_DQPUBLISHER_H__
23 #define MAMA_DQPUBLISHER_H__
24 
25 #include "mama/types.h"
26 #include "wombat/wConfig.h"
27 
28 #if defined( __cplusplus )
29 extern "C"
30 {
31 #endif /* defined( __cplusplus ) */
32 
43 MAMAExpDLL
44 extern mama_status
46 
54 MAMAExpDLL
55 extern mama_status
57  const char* topic);
58 
65 MAMAExpDLL
66 extern mama_status
68 
69 
70 /*
71  * Send a p2p message reply.
72  *
73  * @param publisher The mamaPublisher from which to send the message.
74  * @param request The mamaMsg being responded to.
75  * @param reply The mamaMsg to be send
76  */
77 MAMAExpDLL
78 extern mama_status
80  mamaMsg reply) ;
81 
82 
83 MAMAExpDLL
84 extern mama_status
86  mamaMsgReply replyAddress,
87  mamaMsg reply);
88 
89 MAMAExpDLL
90 extern void
92 
93 
94 
95 MAMAExpDLL
96 extern void
98 
99 MAMAExpDLL
100 extern void
101 mamaDQPublisher_setSenderId (mamaDQPublisher pub, uint64_t senderid);
102 
103 MAMAExpDLL
104 extern void
106 
107 MAMAExpDLL
108 extern void
109 mamaDQPublisher_setClosure (mamaDQPublisher pub, void* closure);
110 
111 MAMAExpDLL
112 extern void
114 
115 MAMAExpDLL
116 extern void*
118 
119 MAMAExpDLL
120 extern void
121 mamaDQPublisher_setCache (mamaDQPublisher pub, void* cache);
122 
123 MAMAExpDLL
124 extern void*
126 
127 #if defined( __cplusplus )
128 }
129 #endif /* defined( __cplusplus ) */
130 
131 #endif /* MAMA_PUBLISHER_H_*/
int8_t mama_bool_t
Definition: types.h:42
struct mamaDQPublisherImpl_ * mamaDQPublisher
Definition: types.h:104
MAMAExpDLL mama_status mamaDQPublisher_create(mamaDQPublisher pub, mamaTransport transport, const char *topic)
Create a mamaDQPublisher for the corresponding transport.
MAMAExpDLL void * mamaDQPublisher_getCache(mamaDQPublisher pub)
struct mamaMsgReplyImpl_ * mamaMsgReply
Definition: types.h:127
MAMAExpDLL void mamaDQPublisher_setSenderId(mamaDQPublisher pub, uint64_t senderid)
MAMAExpDLL void mamaDQPublisher_setClosure(mamaDQPublisher pub, void *closure)
MAMAExpDLL void mamaDQPublisher_setSeqNum(mamaDQPublisher pub, mama_seqnum_t num)
MAMAExpDLL mama_status mamaDQPublisher_allocate(mamaDQPublisher *result)
Responsible for publishing mama marketdata messages.
MAMAExpDLL void mamaDQPublisher_destroy(mamaDQPublisher pub)
enum mamaMsgStatus_ mamaMsgStatus
Utility class (enum) for interpreting message status.
uint32_t mama_seqnum_t
Definition: types.h:48
MAMAExpDLL mama_status mamaDQPublisher_sendReplyWithHandle(mamaDQPublisher pub, mamaMsgReply replyAddress, mamaMsg reply)
MAMAExpDLL void mamaDQPublisher_enableSendTime(mamaDQPublisher pub, mama_bool_t enable)
MAMAExpDLL void mamaDQPublisher_setCache(mamaDQPublisher pub, void *cache)
struct mamaMsgImpl_ * mamaMsg
Opaque definitions for all major MAMA data types.
Definition: types.h:95
mama_status
Definition: status.h:37
MAMAExpDLL void mamaDQPublisher_setStatus(mamaDQPublisher pub, mamaMsgStatus status)
MAMAExpDLL mama_status mamaDQPublisher_sendReply(mamaDQPublisher pub, mamaMsg request, mamaMsg reply)
struct mamaTransportImpl_ * mamaTransport
Definition: types.h:98
MAMAExpDLL mama_status mamaDQPublisher_send(mamaDQPublisher pub, mamaMsg msg)
Send a message.
MAMAExpDLL void * mamaDQPublisher_getClosure(mamaDQPublisher pub)


© 2012 Linux Foundation