Question on Socket IO call usage

From: Ronald Fenner (abbadon@mac.com)
Date: 05/25/02


Ok i was looking over the network code and i've noticed that for reading
and writing to a descriptor that send/recv is used with windows while
write/read is used for everything else. What i want to know is why are
we using write/read. linux has send/recv, while it still seems to work
seems to me the only real difference with writing to the sockets between
these 2 OS is detecting what error occurred. we could merge the 2
perform_socket_write calls into one like perform_socket_read is and
probably just reduce the OS check on read write to ACORN only and
everyone else.

Anyways if anyone can enlighten me as to why it be nice or maybe someone
will realize it's a goof and fix it.

Ron

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT