From owner-freebsd-hackers@freebsd.org Tue Mar 7 11:33:31 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7E5BDD01246 for ; Tue, 7 Mar 2017 11:33:31 +0000 (UTC) (envelope-from emorrasg@yahoo.es) Received: from nm17-vm8.bullet.mail.ir2.yahoo.com (nm17-vm8.bullet.mail.ir2.yahoo.com [212.82.96.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E7A13126C for ; Tue, 7 Mar 2017 11:33:30 +0000 (UTC) (envelope-from emorrasg@yahoo.es) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1488886222; bh=azwDxYTsSgl9Tfatk2GcohnRQf5j74NKSRMhf9jaQNI=; h=Date:From:To:Subject:From:Subject; b=WOPNe5DFJ4f0fISt6u8pKIJyp5K4F3HPnaGz+Mw3WuyuR8ZDjcJoE5FKKsRIdWD7SgR/p5ZOWwj0fSnmT6PPlCssk+xP5JNg0xFiC6XK2/WlWX4WDZtoSPXzDtNJPPUeDKG1Yi6moyQs38/BBdrZDWW1/Xf2k+sIrnb3jDE5SALuS5cx4x15805whUyKRDRKqfVNNtcq4yGea13ukA0azDnJPlHSomb5xLkz/Pl9LDYfsntMVdK6HC5mwFPG5buUDQVJuQE1qG8ufVCYTz4Fy1xt5X4Rt6lbRQl+JZFDBkigy8X1b4cRZLLl0WSCepnTYoD73CIWJqAOYrqTaD710g== Received: from [212.82.98.50] by nm17.bullet.mail.ir2.yahoo.com with NNFMP; 07 Mar 2017 11:30:22 -0000 Received: from [46.228.39.100] by tm3.bullet.mail.ir2.yahoo.com with NNFMP; 07 Mar 2017 11:30:22 -0000 Received: from [127.0.0.1] by smtp137.mail.ir2.yahoo.com with NNFMP; 07 Mar 2017 11:30:22 -0000 X-Yahoo-Newman-Id: 276562.96803.bm@smtp137.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: A8UW8PQVM1k.rdkWzUTrAeCEpK3udWQaJjC7EhmK8AfpHGw 7YMQsHM0teQEOpZXlyt783AVzUFM1F3IdBR5Cww83oQlTXuhhJ7CjAX7Gu_j nOBCQGWB3qqxuvVxlntBsBwlIbC1chwBGRUBWQBhw33yytlszVOt0uwAgbQO H1FB9_DI2jn3gCHwzSXjzQ1nM.k6Va8B9YA63k8YojcK_7tBAYhc_MQkdEBq Xo48OYOjw34_FN2I2o2dE6CyrZL5mggXU_RG8hX0OESrBdvNHvwn7_XOdJBE awdLiSwVpNA_H6fpSSyUkGxXNP6e7cdHcU_M1vOlZMwRs89SzSa1tf6wgpDp IeQQSVJ8M_x.YdcJwsxpjjdU6OEsOVfsIuz4EWzLu.TDva3UHyCNTFN8k3TN BPR5.7lOP2BdkNaC.toftrj_gWOtaYRXUzZnJQ32v9pEZJEZYaY54zCVtALj inVj.tRlpHDH3PyYOGAU3WKs41Lbh_oHUvGKYj66ySquET6RoIvRzNOfBvvQ bGOzdJM_z..2R.0K04qljc70sbCqbHFpJxj0PAHBzJsq5STjD41kCuuEchOv 6acOWTO2_F0bR9rL_ X-Yahoo-SMTP: mX392iiswBAeJNdO_s.EW62LZDJR Date: Tue, 7 Mar 2017 12:31:57 +0100 From: Eduardo Morras To: freebsd-hackers@freebsd.org Subject: Sendfile and sctp questions Message-Id: <20170307123157.50ce7fc601f50bbc476614b5@yahoo.es> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2017 11:33:31 -0000 Hello, I'm developing sctp programs and want to use zero-copy sendfile(2) with SOCK_STREAM sctp connection type, I used sendfile with tcp sockets without problems, but under sctp I have some questions: a) Is this the right list? b) How can I be sure that it's really a zero-copy? c) Will send it as a regular "fair player" message inside the sctp association or will cheat blocking other messages until file transfer ends? d) Will corrupt my association and shoot my multiple feet? I dont' use a unique message, I send multiple messages simultaneusly. Thanks in Advance --- --- Eduardo Morras