Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2006 13:13:50 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Single UDP sockets : duplex capable?
Message-ID:  <456CA68E.7090207@u.washington.edu>

next in thread | raw e-mail | index | archive | help
Hello,

    Just wondering, abstractly..

 -------------------------
| 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?456CA68E.7090207>