OpenMAMA
senderId.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 MamaSenderIdH__
23 #define MamaSenderIdH__
24 
25 #include "mama/mama.h"
26 
27 #if defined(__cplusplus)
28 extern "C" {
29 #endif
30 
31 
37 MAMAExpDLL
38 extern void mamaSenderId_getIpAddr (uint64_t senderId,
39  char* buffer,
40  size_t maxLen);
41 
47 MAMAExpDLL
48 extern void mamaSenderId_getPid (uint64_t senderId,
49  uint16_t* result);
50 
51 MAMAExpDLL
52 extern void mamaSenderId_getPid64 (uint64_t senderId,
53  uint32_t* result);
59 MAMAExpDLL
60 extern uint64_t mamaSenderId_getSelf (void);
61 
67 MAMAExpDLL
68 extern void mamaSenderId_setSelf (uint64_t self);
69 
70 #if defined(__cplusplus)
71 }
72 #endif
73 
74 #endif /* MamaSenderIdH__ */
MAMAExpDLL void mamaSenderId_setSelf(uint64_t self)
Manually set a sender ID for the process.
MAMAExpDLL void mamaSenderId_getPid(uint64_t senderId, uint16_t *result)
Determine the process id in the buffer provided.
MAMAExpDLL void mamaSenderId_getPid64(uint64_t senderId, uint32_t *result)
MAMAExpDLL void mamaSenderId_getIpAddr(uint64_t senderId, char *buffer, size_t maxLen)
Determine the IP address (as a string) of the sender ID in the buffer provided.
MAMAExpDLL uint64_t mamaSenderId_getSelf(void)
Return a sender ID for possible use when publishing messages.


© 2012 Linux Foundation