Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
How do I ask a good question?
Displaying selected article
Showing 1 of 503 articles.
Currently 45 other people reading this forum.
Hi,
I have a bunch of questions and I thought I'd just make one post instead of many small ones.
1) What kind of hints should we use for sockets? Does supporting IPv4/6 matter? In the real world, is there such thing as a device that only uses IPv4 or only IPv6?
2) getaddrinfo() gives multiple addresses. Can we just use the first in the list? Are they all valid?
3) The marking rubric asks us to support multiple concurrent queries. Does this mean clients are allowed to wait in a queue, or does it mean multithreading, or an event system? Is there a way to setup events with and without timers in C?
4) Within localhost, there's no transmission errors. Do we need error checking/acks/etc? What kind of error checking is needed? Does TCP need error checking/acks if it's "reliable" (as mentioned in the Getting Started page).
5) Sending X bytes using send()/sendto() apparently doesn't always send X bytes, it might send less. Why? What factors does it depend on (message size, external network activity)? What does the receiver see if I send 1 message using 2+ send calls?
Thanks