<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                本章的代碼在目錄:…\\tutorials\\Patchs\\1. TCP程序 ### 創建一個tcp服務器: ![](https://img.kancloud.cn/cf/e0/cfe0514062f12b85807986c075a7f1c3_832x552.png =600x) ### 參考2.2.2內容的基本步驟。 ### 這里的max\_used\_connections表示最大監聽隊列長度,默認是128。 link\_build\_tcp\_server成功返回socket id,失敗返回-1。 ### 調用方式如下: ![](https://img.kancloud.cn/33/6a/336ab3950e508eecd218dd5875278afc_832x596.png =600x) ### 創建成功后,進行accept等待客戶端,有客戶端連接時接收數據并響應。 創建一個tcp客戶端: ![](https://img.kancloud.cn/9f/d2/9fd27b1dd318a2e05753a913456ac545_832x526.png =600x) ### 客戶端邏輯: ![](https://img.kancloud.cn/86/d1/86d166f4663d9de3dcf05072d9854a9f_832x500.png =600x) ### 連接成功后發送數據,再接收來自服務器的數據。 ### 我們把代碼copy到ubuntu\_server的samba服務器中。 編譯運行: :-: ![](https://img.kancloud.cn/11/0f/110f112ba6693a46b6b80b1714782f7b_832x160.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看