Re: Single UDP sockets : duplex capable?
- From: "Devon H. O'Dell" <devon.odell@xxxxxxxxx>
- Date: Tue, 28 Nov 2006 16:24:08 -0500
2006/11/28, Garrett Cooper <youshi10@xxxxxxxxxxxxxxxx>:
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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Single UDP sockets : duplex capable?
- From: Yar Tikhiy
- Re: Single UDP sockets : duplex capable?
- From: Garrett Cooper
- Re: Single UDP sockets : duplex capable?
- References:
- Single UDP sockets : duplex capable?
- From: Garrett Cooper
- Single UDP sockets : duplex capable?
- Prev by Date: Single UDP sockets : duplex capable?
- Next by Date: pthreads : questions about concurrency and lifetime
- Previous by thread: Single UDP sockets : duplex capable?
- Next by thread: Re: Single UDP sockets : duplex capable?
- Index(es):
Relevant Pages
|
|