[Bug ada/9535] Datagram socket semantics are wrong

fw@gcc.gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 27 18:24:00 GMT 2003

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.


fw@gcc.gnu.org changed:

           What    |Removed                     |Added
           Severity|major                       |normal
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-05-27 18:18:57
               date|                            |

------- Additional Comments From fw@gcc.gnu.org  2003-05-27 18:18 -------
IMHO, the changes should be made specific to datagram sockets (UDP).
Current semantics are acceptable for stream sockets (TCP) and match
expectations Ada programmers might have about Read/Write operations.

The Write fix seems questionable: The caller cannot know if a packet has
been sent or not.

However, Ada streams are inherently biased towards reliable,
stream-based data transmission.  It is quite hard to use them for
anything else.

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the Gcc-bugs mailing list