{"id":8476,"date":"2024-06-07T22:01:01","date_gmt":"2024-06-07T14:01:01","guid":{"rendered":""},"modified":"2024-06-07T22:01:01","modified_gmt":"2024-06-07T14:01:01","slug":"socket\u63a5\u6536http\u8bf7\u6c42_socket\u63a5\u6536http\u8bf7\u6c42","status":"publish","type":"post","link":"https:\/\/mushiming.com\/8476.html","title":{"rendered":"socket\u63a5\u6536http\u8bf7\u6c42_socket\u63a5\u6536http\u8bf7\u6c42"},"content":{"rendered":"

\n <\/path> \n<\/svg> <\/p>\n

\u7b80\u8ff0\uff1a<\/h4>\n

\u5728Qt\u91cc\u5229\u7528TCP\/IP\u534f\u8bae\uff0csocket\u5957\u63a5\u5b57\u8bbe\u8ba1\u5b9e\u73b0\u7ed3\u6784\u4f53\u7684\u6536\u53d1\uff0c\u7c7b\u4f3c\u5b9e\u73b0\u7b80\u5355\u7684\u81ea\u5b9a\u4e49\u901a\u4fe1\u534f\u8bae\u3002<\/h6>\n

\u63cf\u8ff0\uff1a<\/h4>\n

\u53d1\u9001\u7684\u7ed3\u6784\u4f53\u5305\u542b\u5e27\u5934<\/strong>header\uff08\u5360\u4e24\u5b57\u8282\uff09\u3001\u6570\u636e\u957f\u5ea6<\/strong>dataLength\uff08\u5360\u4e00\u5b57\u8282\uff09\u3001\u6570\u636e<\/strong>my_data\uff08\u4e0d\u591a\u4e8e64\u5b57\u8282\uff09\u3001\u6821\u9a8c\u548c<\/strong>check_sum\uff08\u524d\u9762\u6240\u6709\u6570\u636e\u6240\u5360\u5b57\u8282\u548c\uff0c\u672c\u8eab\u53ea\u5360\u4e00\u4e2a\u5b57\u8282\uff09\u3002<\/p>\n

\u53d1\u9001\u65b9\u7684\u7ed3\u6784\u4f53<\/mark>\uff1a
\u8fd9\u91cc\u8981\u7279\u522b\u6ce8\u610f== #pragma pack(1)<\/strong> ==\u7684\u4f7f\u7528\uff0c\u6d89\u53ca\u5230\u7ed3\u6784\u4f53\u5185\u5b58\u5bf9\u9f50\uff0c\u4f7f\u7528\u8fd9\u884c\u53ef\u4ee5\u8bbe\u7f6e\u7ed3\u6784\u4f53\u5bf9\u9f50\u65b9\u5f0f\u4e3a1\u5b57\u8282\uff0c\u8fd9\u70b9\u7279\u522b\u91cd\u8981\uff0c\u6211\u5728\u8fd9\u4e2a\u5751\u91cc\u7ed5\u4e86\u597d\u4e45\u624d\u8d70\u51fa\u6765\uff01\uff01\u8fd9\u6837\u8bbe\u7f6e\u4e3b\u8981\u662f\u56e0\u4e3a\u540e\u9762\u8981\u4f7f\u7528\u5230\u7ed3\u6784\u4f53\u7684\u5927\u5c0fsizeof(senddata)\u3002<\/p>\n

#define<\/span> DATA_LEN 64<\/span> #pragma<\/span> pack(1) <\/span>\/\/\u8bbe\u7f6e\u7ed3\u6784\u4f53\u4e3a1\u5b57\u8282\u5bf9\u9f50<\/span> typedef<\/span> struct<\/span> sendData { \n   <\/span> uchar header[<\/span>2<\/span>]<\/span>;<\/span> \/\/\u5e27\u5934\uff082\u5b57\u8282\uff09 uchar\u624d\u80fd\u5b58\u5341\u516d\u8fdb\u5236\u6570<\/span> uchar dataLength;<\/span> \/\/\u6570\u636e\u4e2a\u6570\uff081\u5b57\u8282\uff09\uff0c\u5c0f\u4e8e64<\/span> char<\/span> my_data[<\/span>DATA_LEN]<\/span>;<\/span> \/\/\u6570\u636e\uff08\u5c0f\u4e8e64\u5b57\u8282\uff09<\/span> uchar check_sum;<\/span> \/\/\u6821\u9a8c\u548c\uff081\u5b57\u8282\uff09 \u524d\u9762\u6240\u6709\u5b57\u8282\u7d2f\u52a0\u548c<\/span> }<\/span>senddata;<\/span> #pragma<\/span> pack() <\/span>\/\/\u7ed3\u675f\u7ed3\u6784\u4f53\u5bf9\u9f50\u8bbe\u7f6e<\/span> <\/code><\/pre>\n

\u6ce8\u610f\uff1a\u7ed3\u6784\u4f53\u4e2d\u7684\u6570\u636e\u5b58\u50a8\u6700\u597d\u4e0d\u8981\u7528 char* \u7c7b\u578b\uff0c\u5728\u540e\u9762\u7528\u5230\u7ed3\u6784\u4f53\u5f3a\u8f6c\u3001\u7ed3\u6784\u4f53\u8f6cQByteArray\u6570\u7ec4\u65f6\u5bb9\u6613\u51fa\u9519\u3002\u8f6c\u7684\u65f6\u5019\u53ef\u80fd\u53ea\u62f7\u8d1d\u4e86char\u7684\u5730\u5740\uff0c\u6ca1\u6709\u62f7\u8d1d\u5230\u6570\u636e\uff1b\u4e5f\u6709\u53ef\u80fd\u7531\u4e8echar<\/em>\u6570\u636e\u957f\u5ea6\u4e0d\u5b9a\uff0c\u53d1\u9001\u7684\u65f6\u5019\u51fa\u73b0\u95ee\u9898\uff1b\u4e5f\u6709\u53ef\u80fd\u63a5\u6536\u65b9\u6536\u5230\u89e3\u6790\u7684\u65f6\u5019\u51fa\u73b0\u95ee\u9898\u3002<\/mark><\/p>\n

\u5ba2\u6237\u7aef\u53d1\u9001\uff1a<\/h4>\n
\u603b\u4f53\u601d\u8def<\/mark>\uff1a\u5148\u5c01\u88c5\u586b\u597d\u5e27\u5934\u90e8\u5206\uff0c\u7136\u540e\u4ece\u754c\u9762\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\uff0c\u5c06\u5176\u5b58\u8fdb\u7ed3\u6784\u4f53my_data[ ]\u6570\u7ec4\u4e2d\uff08\u5177\u4f53\u64cd\u4f5c\uff1a\u83b7\u53d6\u7684\u6570\u636e\u662f\u5b57\u7b26\u4e32\uff0c\u8981\u501f\u52a9QByteArray\u4f5c\u4e3a\u4e2d\u95f4\u6865\u6881\u8fdb\u884c\u8f6c\u6362\uff09,\u586b\u597d\u6570\u636e\u957f\u5ea6\u548c\u6821\u9a8c\u548c\uff0c\u81f3\u6b64\u8981\u53d1\u9001\u7684\u7ed3\u6784\u4f53\u5c31\u5c01\u88c5\u597d\u4e86\u3002\u7136\u540e\u518d\u5c06\u5c01\u88c5\u597d\u7684\u7ed3\u6784\u4f53\u8f6c\u4e3aQByteArray\u6570\u7ec4\uff08\u56e0\u4e3a\u4f20\u8f93\u90fd\u662fByte\u7c7b\u578b\u6570\u636e\uff0c\u76f4\u63a5\u53d1\u7ed3\u6784\u4f53\u4f1a\u62a5\u9519\uff09,\u7136\u540e\u7531\u4e8e\u53d1\u9001\u7684\u6570\u636e\u957f\u5ea6\u6bcf\u6b21\u4e0d\u540c\uff0cmy_data\u6570\u7ec4\u53ef\u80fd\u5c31\u56e0\u6b64\u6ca1\u6709\u5360\u6ee1\uff0c\u6b64\u5904\u5bf9\u6821\u9a8c\u548c\u8fd9\u4e2a\u6570\u636e\u7684\u653e\u7f6e\u4f4d\u7f6e\u6709\u4e2a\u5904\u7406\u7ec6\u8282\uff0c\u5c06\u5176\u653e\u5728\u4e86my_data\u6570\u636e\u540e\u9762\uff0c\u4e0b\u9762\u6709\u89e3\u91ca\u3002<\/h5>\n
QString\u8f6cchar[ ]<\/h5>\n
char<\/span> data[<\/span>64<\/span>]<\/span>;<\/span> QString str=<\/span>\"12fff\"<\/span>;<\/span> QByteArray ba=<\/span>str.<\/span>toLatin1<\/span>(<\/span>)<\/span>;<\/span> char<\/span> *<\/span>temp=<\/span>ba.<\/span>data<\/span>(<\/span>)<\/span>;<\/span> memcpy<\/span>(<\/span>data,<\/span>temp,<\/span>ba.<\/span>length<\/span>(<\/span>)<\/span>)<\/span>;<\/span> <\/code><\/pre>\n
 sendData st_senddata;<\/span> QByteArray get_data,<\/span> sendTcpData;<\/span> char<\/span> *<\/span>temp;<\/span> QString str;<\/span> \/\/senddata.header.resize(2);<\/span> st_senddata.<\/span>header[<\/span>0<\/span>]<\/span> =<\/span> 0x55<\/span>;<\/span> \/\/\u5047\u8bbe\u5e27\u5934\u5c31\u662f0X55 0XAA<\/span> st_senddata.<\/span>header[<\/span>1<\/span>]<\/span> =<\/span> 0xAA<\/span>;<\/span> str =<\/span> ui-<\/span>><\/span>textEdit_Send-<\/span>><\/span>toPlainText<\/span>(<\/span>)<\/span>.<\/span>toLocal8Bit<\/span>(<\/span>)<\/span>;<\/span> \/\/\u6570\u636e\u8d85\u957f\u63d0\u9192<\/span> if<\/span>(<\/span>str.<\/span>length<\/span>(<\/span>)<\/span> ><\/span> 64<\/span>)<\/span> { \n   <\/span> QMessageBox::<\/span>information<\/span>(<\/span>this<\/span>,<\/span>tr<\/span>(<\/span>\"\u63d0\u793a\"<\/span>)<\/span>,<\/span>tr<\/span>(<\/span>\"\u6570\u636e\u957f\u5ea6\u9650\u5236\u4e3a64\uff01\"<\/span>)<\/span>,<\/span>QMessageBox::<\/span>Yes)<\/span>;<\/span> ui-<\/span>><\/span>textEdit_Send-<\/span>><\/span>clear<\/span>(<\/span>)<\/span>;<\/span> return<\/span>;<\/span> }<\/span> \/\/\u586b\u597d\u6570\u636e<\/span> get_data=<\/span>(<\/span>QByteArray)<\/span>ui-<\/span>><\/span>textEdit_Send-<\/span>><\/span>toPlainText<\/span>(<\/span>)<\/span>.<\/span>toLocal8Bit<\/span>(<\/span>)<\/span>;<\/span> \/\/\u76f4\u63a5\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u540c\u65f6\u5c06QString\u8f6c\u6210QByteArray<\/span> temp=<\/span>get_data.<\/span>data<\/span>(<\/span>)<\/span>;<\/span> \/\/\u5c06QByteArray\u8f6c\u6210char*<\/span> memcpy<\/span>(<\/span>st_senddata.<\/span>my_data,<\/span>temp,<\/span>get_data.<\/span>length<\/span>(<\/span>)<\/span>)<\/span>;<\/span> \/\/\u4e0d\u62f7\u8d1d\u5185\u5b58\u4f20\u7ed3\u6784\u4f53\u65f6\u5c31\u53ea\u4f1a\u4f20\u4e00\u4e2a\u6307\u9488\u8fc7\u53bb<\/span> \/\/\u586b\u597d\u6570\u636e\u957f\u5ea6<\/span> st_senddata.<\/span>dataLength =<\/span> get_data.<\/span>length<\/span>(<\/span>)<\/span>;<\/span> \/\/\u586b\u597d\u6821\u9a8c\u548c\uff0c\u5c31\u662fmy_data\u957f\u5ea6+header\u4e24\u5b57\u8282+datalength\u4e00\u5b57\u8282<\/span> st_senddata.<\/span>check_sum =<\/span> get_data.<\/span>length<\/span>(<\/span>)<\/span> +<\/span> 3<\/span>;<\/span> \/\/\u4f7f\u7528\u5b57\u8282\u6570\u7ec4,\u5c06\u7ed3\u6784\u4f53\u8f6c\u4e3a\u5b57\u7b26\u6570\u7ec4\uff0c\u53d1\u9001\u7684\u662f\u5b57\u7b26\u6570\u7ec4\uff08\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u90fd\u662fbyte\u7c7b\u578b\u7684\uff09<\/span> \/\/\u76f4\u63a5sizeof\uff08senddata\uff09\u5185\u5b58\u4f1a\u53d8\u5c0f\uff0c\u8bbe\u7f6e\u4e86\u5bf9\u9f50\u65b9\u5f0f\u89e3\u51b3,,,\u53ea\u7ed9\u4ed6\u8d4b\u4e88\u6570\u636e\u957f\u5ea6\u52a0\u5e27\u5934\u3001\u6821\u9a8c\u548c\u6240\u5360\u5b57\u8282<\/span> sendTcpData.<\/span>resize<\/span>(<\/span>(<\/span>get_data.<\/span>length<\/span>(<\/span>)<\/span>+<\/span>3<\/span>)<\/span>)<\/span>;<\/span> \/\/\u5c06\u5c01\u88c5\u597d\u7684\u7ed3\u6784\u4f53\u8f6c\u4e3aQByteArray\u6570\u7ec4\uff0c\u56e0\u4e3a\u4f20\u8f93\u90fd\u662fByte\u7c7b\u578b<\/span> memcpy<\/span>(<\/span>sendTcpData.<\/span>data<\/span>(<\/span>)<\/span>,<\/span>&<\/span>st_senddata,<\/span>(<\/span>get_data.<\/span>length<\/span>(<\/span>)<\/span>+<\/span>3<\/span>)<\/span>)<\/span>;<\/span> \/*\u56e0\u4e3a\u6570\u636e\u957f\u5ea6\u53ef\u80fd\u6ca1\u6709\u5360\u6ee164\u5b57\u8282\uff0c\u6821\u9a8c\u548c\u53c8\u662f\u5b58\u5728\u6570\u636e\u4e4b\u540e\u7684\uff0c\u6240\u4ee5\u6709\u4e00\u6bb5\u5185\u5b58\u53ef\u80fd\u662f\u7a7a\u7684\uff0c\u56e0\u6b64\u6b64\u5904\u624b\u52a8 \u628a\u6821\u9a8c\u548c\u503c\u6dfb\u52a0\u5728QByteArray\u6570\u7ec4\u6700\u540e\uff0c\u8fd9\u6837\u53d1\u9001\u51fa\u53bb\u7684\u6570\u636e\u5c31\u662f\u8fde\u7eed\u7684*\/<\/span> sendTcpData.<\/span>append<\/span>(<\/span>st_senddata.<\/span>check_sum)<\/span>;<\/span> \/\/\u53d1\u9001\u5b8c\u6574\u7684QByteArray\u6570\u7ec4\uff0c\u5305\u542b\u6240\u6709\u7ed3\u6784\u4f53\u4fe1\u606f<\/span> socket-<\/span>><\/span>write<\/span>(<\/span>sendTcpData)<\/span>;<\/span> ui-<\/span>><\/span>textEdit_Recv-<\/span>><\/span>insertPlainText<\/span>(<\/span>\"send\uff1a\"<\/span>+<\/span>str+<\/span>\"\\n\"<\/span>)<\/span>;<\/span> socket-<\/span>><\/span>flush<\/span>(<\/span>)<\/span>;<\/span> \/\/\u91ca\u653esocket\u7f13\u5b58<\/span> ui-<\/span>><\/span>textEdit_Send-<\/span>><\/span>clear<\/span>(<\/span>)<\/span>;<\/span> \/\/\u53d1\u9001\u51fa\u53bb\u540e\u5c06\u53d1\u9001\u6587\u672c\u6e05\u7a7a<\/span> \/\/\u91ca\u653e\u6307\u9488\u3001\u6e05\u7a7aQByteArray\u6570\u7ec4<\/span> free<\/span>(<\/span>temp)<\/span>;<\/span> temp =<\/span> NULL<\/span>;<\/span> get_data.<\/span>clear<\/span>(<\/span>)<\/span>;<\/span> get_data.<\/span>squeeze<\/span>(<\/span>)<\/span>;<\/span> sendTcpData.<\/span>clear<\/span>(<\/span>)<\/span>;<\/span> sendTcpData.<\/span>squeeze<\/span>(<\/span>)<\/span>;<\/span> <\/code><\/pre>\n

\u670d\u52a1\u7aef\u63a5\u6536\uff1a<\/h4>\n

\u603b\u4f53\u601d\u8def<\/mark>\uff1a\u4e0e\u53d1\u9001\u7aef\u7c7b\u4f3c\uff0c\u6b64\u65f6\u6536\u5230\u7684\u662fQByteArray\u6570\u7ec4\uff0c\u9700\u8981\u5c06\u5b83\u518d\u8f6c\u6210\u4e0e\u53d1\u9001\u65b9\u540c\u6837\u7684\u7ed3\u6784\u4f53\u3002\u5148\u5b9a\u4e49\u4e00\u4e2a\u7ed3\u6784\u4f53\u6307\u9488\uff0c\u5c06\u6536\u5230\u7684QByteArray\u6570\u7ec4\u5f3a\u8f6c\u4e3a\u7ed3\u6784\u4f53\uff0c\u518d\u5229\u7528\u7ed3\u6784\u4f53\u6307\u9488\u8bfb\u53d6\u91cc\u9762\u7684\u503c\uff0c\u5b58\u5728\u65b0\u7684\u7ed3\u6784\u4f53\u53d8\u91cf\u91cc\uff0c\u65b9\u4fbf\u503c\u7684\u8bfb\u53d6\uff0c\u6700\u540e\u518d\u628a\u7ed3\u6784\u4f53\u91cc\u7684my_data\u6570\u636e\u663e\u793a\u5728\u63a5\u6536\u65b9\u7684\u6587\u672c\u91cc\u3002\u6821\u9a8c\u548c\u7684\u8bfb\u53d6\u4e0b\u9762\u4e5f\u6709\u8bf4\u660e\u3002<\/h5>\n

\u63a5\u6536\u65b9\u7684\u7ed3\u6784\u4f53<\/mark>\uff1a<\/p>\n

#define<\/span> DATA_LEN 64<\/span> #pragma<\/span> pack(1)<\/span> \/\/\u63a5\u6536\u6570\u636e\u7684\u683c\u5f0f<\/span> typedef<\/span> struct<\/span> receiveData { \n   <\/span> uchar header[<\/span>2<\/span>]<\/span>;<\/span> \/\/\u5e27\u5934<\/span> uchar dataLength;<\/span> \/\/\u6570\u636e\u4e2a\u6570\uff081\u5b57\u8282\uff09\uff0c\u5c0f\u4e8e64<\/span> char<\/span> my_data[<\/span>DATA_LEN]<\/span>;<\/span> \/\/\u6570\u636e\uff08\u5c0f\u4e8e64\u5b57\u8282\uff09<\/span> uchar check_sum;<\/span> \/\/\u6821\u9a8c\u548c\uff081\u5b57\u8282\uff09 \u524d\u9762\u6240\u6709\u5b57\u8282\u7d2f\u52a0\u548c<\/span> }<\/span>st_receivedata;<\/span> #pragma<\/span> pack()<\/span> <\/code><\/pre>\n
 receiveData st_receiveTcpData,<\/span> *<\/span>get_Data;<\/span> QByteArray buffer;<\/span> QString str;<\/span> \/\/\u8bfb\u53d6\u7f13\u51b2\u533a\u6570\u636e<\/span> buffer =<\/span> socket-<\/span>><\/span>readAll<\/span>(<\/span>)<\/span>;<\/span> if<\/span>(<\/span>!<\/span>buffer.<\/span>isEmpty<\/span>(<\/span>)<\/span>)<\/span> { \n   <\/span> memset<\/span>(<\/span>&<\/span>st_receiveTcpData,<\/span>0<\/span>,<\/span>sizeof<\/span> (<\/span>st_receiveTcpData)<\/span>)<\/span>;<\/span> get_Data =<\/span> (<\/span>receiveData*<\/span>)<\/span>buffer.<\/span>data<\/span>(<\/span>)<\/span>;<\/span> \/\/\u5f3a\u8f6c\u4e3a\u7ed3\u6784\u4f53\uff0c\u9700\u8981\u7528\u7ed3\u6784\u4f53\u6307\u9488\u63a5\u6536<\/span> \/\/\u8bfb\u53d6\u5e27\u5934<\/span> for<\/span>(<\/span>int<\/span> i =<\/span> 0<\/span>;<\/span> i <<\/span> sizeof<\/span> (<\/span>st_receiveTcpData.<\/span>header)<\/span>;<\/span> i++<\/span>)<\/span> { \n   <\/span> st_receiveTcpData.<\/span>header[<\/span>i]<\/span> =<\/span> get_Data-<\/span>><\/span>header[<\/span>i]<\/span>;<\/span> }<\/span> \/\/\u8bfb\u53d6\u6570\u636e\u957f\u5ea6<\/span> st_receiveTcpData.<\/span>dataLength =<\/span> get_Data-<\/span>><\/span>dataLength;<\/span> \/\/\u8bfb\u53d6\u6570\u636e<\/span> for<\/span>(<\/span>int<\/span> i =<\/span> 0<\/span>;<\/span> i <<\/span> buffer.<\/span>length<\/span>(<\/span>)<\/span> -<\/span> 4<\/span>;<\/span> i++<\/span>)<\/span>\/\/buffer\u7684\u957f\u5ea6\u51cf\u53bbheader\u3001datalength\u3001check_sum\u7684\u957f\u5ea6\u5c31\u662f\u6570\u636e\u7684\u957f\u5ea6<\/span> { \n   <\/span> st_receiveTcpData.<\/span>my_data[<\/span>i]<\/span> =<\/span> get_Data-<\/span>><\/span>my_data[<\/span>i]<\/span>;<\/span> }<\/span> \/\/\u8bfb\u53d6\u6821\u9a8c\u548c\uff0c\u56e0\u4e3a\u53d1\u9001\u7684\u65f6\u5019\u907f\u514dmy_data\u6709\u7a7a\u5185\u5bb9\uff0c\u6240\u4ee5\u628a\u6821\u9a8c\u548c\u653e\u5728\u4e86my_data\u540e\u9762\uff0c\u6240\u4ee5\u6b64\u5904\u53ea<\/span> \/\/\u9700\u8981\u8bfb\u53d6my_data\u540e\u9762\u7684\u503c\u5c31\u662f\u6821\u9a8c\u548c\u4e86\u3002<\/span> get_Data-<\/span>><\/span>check_sum =<\/span> get_Data-<\/span>><\/span>my_data[<\/span>buffer.<\/span>length<\/span>(<\/span>)<\/span>-<\/span>4<\/span>]<\/span>;<\/span> st_receiveTcpData.<\/span>check_sum =<\/span> get_Data-<\/span>><\/span>check_sum;<\/span> \/\/\u5c06my_data\u6570\u636e\u8f6c\u4e3aQString<\/span> str =<\/span> QString<\/span>(<\/span>QLatin1String<\/span>(<\/span>st_receiveTcpData.<\/span>my_data)<\/span>)<\/span>;<\/span> \/\/\u5c06my_data\u5728\u6587\u672c\u6846\u663e\u793a<\/span> ui-<\/span>><\/span>textEdit_Recv-<\/span>><\/span>insertPlainText<\/span>(<\/span>\"receive\uff1a\"<\/span>+<\/span>str+<\/span>\"\\n\"<\/span>)<\/span>;<\/span> \/\/\u91ca\u653e\u5185\u5b58<\/span> free<\/span>(<\/span>get_Data)<\/span>;<\/span> buffer.<\/span>clear<\/span>(<\/span>)<\/span>;<\/span> buffer.<\/span>squeeze<\/span>(<\/span>)<\/span>;<\/span> }<\/span> <\/code><\/pre>\n

\u603b\u7684\u6765\u8bf4\uff0c\u601d\u8def\u5f88\u7b80\u5355\uff0c\u4f46\u662f\u5751\u4e5f\u5f88\u591a\uff0c\u5c24\u5176\u662f\u6570\u636e\u8f6c\u6362\u95ee\u9898\uff0c\u7a0d\u4e0d\u6ce8\u610f\u5c31\u51fa\u9519\u3002<\/p>\n

\u6ce8\uff1a<\/h5>\n
QT\u7248\u672c 5.9.9<\/mark><\/h5>\n
\u7f16\u8bd1\u5668\uff1aMinGW 32bit<\/mark><\/h5>\n","protected":false},"excerpt":{"rendered":"socket\u63a5\u6536http\u8bf7\u6c42_socket\u63a5\u6536http\u8bf7\u6c42\u7b80\u8ff0\uff1a\u5728Qt\u91cc\u5229\u7528TCP\/IP\u534f\u8bae\uff0csocket\u5957\u63a5\u5b57\u8bbe\u8ba1\u5b9e\u73b0\u7ed3\u6784\u4f53\u7684\u6536\u53d1\uff0c\u7c7b\u4f3c\u5b9e\u73b0\u7b80\u5355\u7684\u81ea\u5b9a...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8476"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=8476"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/8476\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=8476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=8476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=8476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}