Menu

#13 Doc: st_*msg() un-necessarily constrained to UDP

open
nobody
None
3
2011-12-18
2011-12-18
MarkD
No

Both st_sendmsg() and st_recvmsg() caution that "A file descriptor object identifier (see st_netfd_t) representing a UDP socket", but I don't think that constraint is valid. I've long used by st_sendmsg() and st_recvmsg() on a TCP socket to do, inter alia, fd-passing and the st library does just fine.

My suspicion is that this reference to UDP is just an artifact of a copy/paste of st_sendto() and st_recvfrom().

In any event, I think that restriction on UDP sockets should be removed from the docs or clarified as to when it does not work for TCP.

Discussion

  • MarkD

    MarkD - 2011-12-18
    • priority: 5 --> 3
    • summary: st_msg() docs un-necessarily constrain to UDP --> st_msg() docs un-necessarily constrained to UDP
     
  • MarkD

    MarkD - 2011-12-18
    • summary: st_msg() docs un-necessarily constrained to UDP --> Doc: st_msg() un-necessarily constrained to UDP
     

Log in to post a comment.