Date: Tue, 28 Nov 2006 16:24:08 -0500 From: "Devon H. O'Dell" <devon.odell@gmail.com> To: "Garrett Cooper" <youshi10@u.washington.edu> Cc: freebsd-hackers@freebsd.org Subject: Re: Single UDP sockets : duplex capable? Message-ID: <9ab217670611281324y7e6b9d69g7f8843504b2fbd8d@mail.gmail.com> In-Reply-To: <456CA68E.7090207@u.washington.edu> References: <456CA68E.7090207@u.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
2006/11/28, Garrett Cooper <youshi10@u.washington.edu>:
> 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"
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ab217670611281324y7e6b9d69g7f8843504b2fbd8d>
