rename some structures
This commit is contained in:
parent
704d8da049
commit
e01081f275
|
@ -22,12 +22,12 @@
|
||||||
#include "tutil.h"
|
#include "tutil.h"
|
||||||
#include "rpcCache.h"
|
#include "rpcCache.h"
|
||||||
|
|
||||||
typedef struct _c_hash_t {
|
typedef struct SConnHash {
|
||||||
uint32_t ip;
|
uint32_t ip;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
char connType;
|
char connType;
|
||||||
struct _c_hash_t *prev;
|
struct SConnHash *prev;
|
||||||
struct _c_hash_t *next;
|
struct SConnHash *next;
|
||||||
void *data;
|
void *data;
|
||||||
uint64_t time;
|
uint64_t time;
|
||||||
} SConnHash;
|
} SConnHash;
|
||||||
|
|
|
@ -17,12 +17,12 @@
|
||||||
#include "tlog.h"
|
#include "tlog.h"
|
||||||
#include "tmempool.h"
|
#include "tmempool.h"
|
||||||
|
|
||||||
typedef struct _ip_hash_t {
|
typedef struct SIpHash {
|
||||||
uint32_t ip;
|
uint32_t ip;
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
int hash;
|
int hash;
|
||||||
struct _ip_hash_t *prev;
|
struct SIpHash *prev;
|
||||||
struct _ip_hash_t *next;
|
struct SIpHash *next;
|
||||||
void *data;
|
void *data;
|
||||||
} SIpHash;
|
} SIpHash;
|
||||||
|
|
||||||
|
|
|
@ -205,10 +205,10 @@ void *taosOpenUdpConnection(void *shandle, void *thandle, char *ip, uint16_t por
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *taosRecvUdpData(void *param) {
|
static void *taosRecvUdpData(void *param) {
|
||||||
|
SUdpConn *pConn = param;
|
||||||
struct sockaddr_in sourceAdd;
|
struct sockaddr_in sourceAdd;
|
||||||
int dataLen;
|
int dataLen;
|
||||||
unsigned int addLen;
|
unsigned int addLen;
|
||||||
SUdpConn * pConn = (SUdpConn *)param;
|
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
int minSize = sizeof(SRpcHead);
|
int minSize = sizeof(SRpcHead);
|
||||||
SRecvInfo recvInfo;
|
SRecvInfo recvInfo;
|
||||||
|
|
Loading…
Reference in New Issue