From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 28 21:25:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 818A816A504 for ; Tue, 28 Nov 2006 21:25:19 +0000 (UTC) (envelope-from devon.odell@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id F16AD43D2F for ; Tue, 28 Nov 2006 21:24:27 +0000 (GMT) (envelope-from devon.odell@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1466660uge for ; Tue, 28 Nov 2006 13:24:09 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VN3ug+76ITnEX52lEaxcoIgIJCCO3vnyn7gFjvJQw+K22ashiQuDDwmvB0FwxApJrN0pUAhzIesuS201KF5SC8pvbXyTMiX3nY+v7MIVxZk3qWnmbMWRbRlMZMqpIWqVYjjzcKvLmXYHKJx5sgw9pKrhQy+3/jGuk5ZPWcmRRpQ= Received: by 10.66.219.11 with SMTP id r11mr2318076ugg.1164749049057; Tue, 28 Nov 2006 13:24:09 -0800 (PST) Received: by 10.67.86.10 with HTTP; Tue, 28 Nov 2006 13:24:08 -0800 (PST) Message-ID: <9ab217670611281324y7e6b9d69g7f8843504b2fbd8d@mail.gmail.com> Date: Tue, 28 Nov 2006 16:24:08 -0500 From: "Devon H. O'Dell" To: "Garrett Cooper" In-Reply-To: <456CA68E.7090207@u.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <456CA68E.7090207@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Single UDP sockets : duplex capable? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Nov 2006 21:25:19 -0000 2006/11/28, Garrett Cooper : > Hello, > > Just wondering, abstractly.. Both sides can read from and write to the socket file descriptor. You'll need to develop a protocol to determine when either given side is expecting to receive or to send data (if both sides sit around in read(2), you're not going to get much done) :) --dho > ------------------------- > | A -[socket (UDP)]-> B | > ------------------------- > > A creates a UDP socket (call it 's1') to talk to B. > > Can B use the same socket ('s2') to talk to A using read(2) or > recv(2), or does A have to accept(2) traffic from B using a different > socket? > > The programming language I'm using is C (not C++). > > Thanks, > -Garrett > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >