|
@@ -56,12 +56,12 @@ typedef struct _MSG_INFO_
|
|
byResult = 0;
|
|
byResult = 0;
|
|
dwClientId = 0;
|
|
dwClientId = 0;
|
|
memset(byData, 0, DATA_LEN);
|
|
memset(byData, 0, DATA_LEN);
|
|
- memset(szClientName, 0, sizeof(TCHAR)*NAME_LEN);
|
|
|
|
|
|
+ memset(szClientName, 0, sizeof(TCHAR) * NAME_LEN);
|
|
}
|
|
}
|
|
|
|
|
|
- _MSG_INFO_ &operator=(const _MSG_INFO_ &that)
|
|
|
|
|
|
+ _MSG_INFO_& operator=(const _MSG_INFO_& that)
|
|
{
|
|
{
|
|
- if ( this == &that )
|
|
|
|
|
|
+ if (this == &that)
|
|
return *this;
|
|
return *this;
|
|
|
|
|
|
dwClientId = that.dwClientId;
|
|
dwClientId = that.dwClientId;
|
|
@@ -71,7 +71,7 @@ typedef struct _MSG_INFO_
|
|
|
|
|
|
return *this;
|
|
return *this;
|
|
}
|
|
}
|
|
-}MSG_INFO,*LPMSG_INFO;
|
|
|
|
|
|
+}MSG_INFO, * LPMSG_INFO;
|
|
|
|
|
|
typedef struct _HEADER_
|
|
typedef struct _HEADER_
|
|
{
|
|
{
|
|
@@ -88,25 +88,25 @@ typedef struct _HEADER_
|
|
byMsgType = 0;
|
|
byMsgType = 0;
|
|
}
|
|
}
|
|
|
|
|
|
- _HEADER_ &operator=(const _HEADER_ &that)
|
|
|
|
|
|
+ _HEADER_& operator=(const _HEADER_& that)
|
|
{
|
|
{
|
|
- if ( this == &that )
|
|
|
|
|
|
+ if (this == &that)
|
|
return *this;
|
|
return *this;
|
|
-
|
|
|
|
|
|
+
|
|
byProtocol = that.byProtocol;
|
|
byProtocol = that.byProtocol;
|
|
dwPackageLen = that.dwPackageLen;
|
|
dwPackageLen = that.dwPackageLen;
|
|
byMsgType = that.byMsgType;
|
|
byMsgType = that.byMsgType;
|
|
|
|
|
|
return *this;
|
|
return *this;
|
|
}
|
|
}
|
|
-}DATAHEADER, *LPDATAHEADER;
|
|
|
|
|
|
+}DATAHEADER, * LPDATAHEADER;
|
|
|
|
|
|
// 헝헹관
|
|
// 헝헹관
|
|
typedef struct _PACKAGE_ {
|
|
typedef struct _PACKAGE_ {
|
|
DATAHEADER header;
|
|
DATAHEADER header;
|
|
//BYTE buf[4]; // 야竟코휭(寧濾뒈囹);
|
|
//BYTE buf[4]; // 야竟코휭(寧濾뒈囹);
|
|
LPVOID buf;
|
|
LPVOID buf;
|
|
-}PACKAGE, *LPPACKAGE;
|
|
|
|
|
|
+}PACKAGE, * LPPACKAGE;
|
|
|
|
|
|
#pragma pack(pop)
|
|
#pragma pack(pop)
|
|
#pragma endregion 숌데繫斤葵累
|
|
#pragma endregion 숌데繫斤葵累
|