<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # swoole_server->sendfile 發送文件到TCP客戶端連接。使用示例: ```php bool swoole_server->sendfile(int $fd, string $filename, int $offset =0, int $length = 0); ``` sendfile函數調用OS提供的sendfile系統調用,由操作系統直接讀取文件并寫入socket。sendfile只有2次內存拷貝,使用此函數可以降低發送大量文件時操作系統的CPU和內存占用。 * `$filename` 要發送的文件路徑,如果文件不存在會返回false * `$offset` 指定文件偏移量,可以從文件的某個位置起發送數據。默認為0,表示從文件頭部開始發送 * `$length` 指定發送的長度,默認為文件尺寸。 * 操作成功返回`true`,失敗返回`false` > 此函數與`swoole_server->send`都是向客戶端發送數據,不同的是sendfile的數據來自于指定的文件 > `sendfile`在低于`1.9.17`版本中不能用于`SSL`客戶端連接 > `$length`和`$offset`在`1.9.11`版本后可用
                  <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>

                              哎呀哎呀视频在线观看