diff --git a/src/inc/trpc.h b/src/inc/trpc.h index 9176a8b0683c83d3e3227f7ae37d00a22a7ea795..59908253c2e825c0d26a27332f3ede5a90aa0060 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 e350f9e5fe3afd5ecfc48e8e2051d238c1673f5d..d531b300fca51c9e8f0ddd7846801ea4f69d60d1 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