From owner-freebsd-stable Thu Mar 29 12: 5:44 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 5B34E37B71E for ; Thu, 29 Mar 2001 12:05:41 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id NAA08230; Thu, 29 Mar 2001 13:05:25 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id NAA12989; Thu, 29 Mar 2001 13:05:24 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15043.38276.757742.729671@nomad.yogotech.com> Date: Thu, 29 Mar 2001 13:05:24 -0700 (MST) To: "Jim King" Cc: "Paul Marquis" , "Nate Williams" , "Brian Matthews" , "Allen Landsidel" , Subject: Re: Threads vs. blocking sockets In-Reply-To: <00f201c0b889$c4ff4d30$524c8486@jking> References: <15043.35980.669828.971544@nomad.yogotech.com> <00dd01c0b886$d8510250$524c8486@jking> <3AC390FD.6C03BF8F@pobox.com> <00f201c0b889$c4ff4d30$524c8486@jking> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > None of the documented values for errno as set by send(2) indicate "only > part of the data was sent", at least by my reading. Which value of errno > indicates that I need to resend part of the data? How do I tell how many > bytes were sent? Again, from the manpage: [EMSGSIZE] The socket requires that message be sent atomically, and the size of the message to be sent made this impossible. From reading this, you can safely imply that it is possible that part of a message can be sent, unless a socket is specically created to force all messages to be sent atomically. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message