aqhome, aqhomed: Adapted to latest changes.
This commit is contained in:
@@ -19,10 +19,11 @@
|
||||
#include <gwenhywfar/list.h>
|
||||
#include <gwenhywfar/debug.h>
|
||||
#include <gwenhywfar/gwentime.h>
|
||||
#include <gwenhywfar/endpoint_ipc_tcp.h>
|
||||
#include <gwenhywfar/endpoint_tcpd_ipc.h>
|
||||
|
||||
|
||||
#define AQH_MSG_ENDPOINT_NODEIPCTCP_NAME "nodeipctcp"
|
||||
|
||||
#define AQH_MSG_ENDPOINT_NODEIPCTCP_NAME "node_ipc_tcpd"
|
||||
|
||||
|
||||
|
||||
@@ -32,11 +33,11 @@ static GWEN_MSG_ENDPOINT *_createChild(GWEN_MSG_ENDPOINT *ep);
|
||||
|
||||
|
||||
|
||||
GWEN_MSG_ENDPOINT *AQH_TcpIpcNodeEndpoint_new(const char *name, const char *host, int port, int groupId)
|
||||
GWEN_MSG_ENDPOINT *AQH_TcpdIpcNodeEndpoint_new(const char *host, int port, const char *name, int groupId)
|
||||
{
|
||||
GWEN_MSG_ENDPOINT *ep;
|
||||
|
||||
ep=GWEN_TcpIpcEndpoint_new(name?name:AQH_MSG_ENDPOINT_NODEIPCTCP_NAME, host, port, groupId);
|
||||
ep=GWEN_IpcTcpdEndpoint_new(host, port, name?name:AQH_MSG_ENDPOINT_NODEIPCTCP_NAME, groupId);
|
||||
GWEN_MsgEndpoint_AddFlags(ep, AQH_MSGEP_NODE_FLAGS_NOMESSAGES);
|
||||
GWEN_MsgEndpoint_SetCreateChildFn(ep, _createChild);
|
||||
|
||||
|
||||
@@ -6,17 +6,17 @@
|
||||
* should have received along with this file.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef AQH_ENDPOINT_NODE_IPC_TCP_H
|
||||
#define AQH_ENDPOINT_NODE_IPC_TCP_H
|
||||
#ifndef AQH_ENDPOINT_NODE_IPC_TCPD_H
|
||||
#define AQH_ENDPOINT_NODE_IPC_TCPD_H
|
||||
|
||||
|
||||
#include <aqhome/api.h>
|
||||
|
||||
#include <gwenhywfar/endpoint_ipc_tcp.h>
|
||||
#include <gwenhywfar/endpoint.h>
|
||||
|
||||
|
||||
|
||||
AQHOME_API GWEN_MSG_ENDPOINT *AQH_TcpIpcNodeEndpoint_new(const char *name, const char *host, int port, int groupId);
|
||||
AQHOME_API GWEN_MSG_ENDPOINT *AQH_TcpdIpcNodeEndpoint_new(const char *host, int port, const char *name, int groupId);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -73,7 +73,7 @@ void AQH_ForwardIpcMsg_DumpToBuffer(const GWEN_MSG *msg, GWEN_BUFFER *dbuf, cons
|
||||
GWEN_IpcMsg_GetProtoId(msg),
|
||||
GWEN_IpcMsg_GetProtoVersion(msg));
|
||||
if (ptr && len) {
|
||||
GWEN_Text_DumpString2Buffer(ptr, len, dbuf, 2);
|
||||
GWEN_Text_DumpString2Buffer((const char*)ptr, len, dbuf, 2);
|
||||
GWEN_Buffer_AppendByte(dbuf, '\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user