Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux では、sendfile を使用して、ファイルをソケットに直接転送できます。
しかし、2 つのサーバー ソケットがあるとします。最初のソケットの出力を 2 番目のソケットに出力したいとします。
どうやってするか?それ以外の
data=sock1.read() sock2.write(data)
私はdup2がうまくいくと信じています