From f80597a1b1d269753dabe61b2794b18c33fa4c20 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Wed, 3 Aug 2022 13:48:53 +0800 Subject: [PATCH] feat(rpc): windows build error1 --- src/inc/trpc.h | 7 ------- src/rpc/src/rpcMain.c | 8 +++++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/inc/trpc.h b/src/inc/trpc.h index 9176a8b068..59908253c2 100644 --- a/src/inc/trpc.h +++ b/src/inc/trpc.h @@ -78,13 +78,6 @@ typedef struct SRpcInit { int (*afp)(char *tableId, char *spi, char *encrypt, char *secret, char *ckey); } SRpcInit; -typedef struct SSendInfo { - void *pContext; - void *pConn; - void *pFdObj; - SOCKET fd; -} SSendInfo; - int32_t rpcInit(); void rpcCleanup(); void *rpcOpen(const SRpcInit *pRpc); diff --git a/src/rpc/src/rpcMain.c b/src/rpc/src/rpcMain.c index e350f9e5fe..d531b300fc 100644 --- a/src/rpc/src/rpcMain.c +++ b/src/rpc/src/rpcMain.c @@ -69,6 +69,13 @@ typedef struct { struct SRpcConn *connList; // connection list } SRpcInfo; +typedef struct SSendInfo { + void *pContext; + void *pConn; + void *pFdObj; + SOCKET fd; +} SSendInfo; + typedef struct { SRpcInfo *pRpc; // associated SRpcInfo SRpcEpSet epSet; // ip list provided by app @@ -127,7 +134,6 @@ typedef struct SRpcConn { SRpcReqContext *pContext; // request context int64_t rid; // probe msg use rid get pContext int64_t lastLiveTime; // last alive time with ms - } SRpcConn; int tsRpcMaxUdpSize = 15000; // bytes -- GitLab