• 0

what is the difference between read() and recv() , and between send() and write() in socket programming ? performance and speed and other behavior.

The only difference is that recv/send let you specify certain options for the actual operation . read/write are the 'universal' file descriptor functions while recv/send are slightly more specialized (for instance, you can set a flag to ignore SIGPIPE, or to send out-of-band messages...).

  • 0
Reply Report