Re: C Sockets Newbie: Easy question

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/17/04


Date: Sat, 17 Apr 2004 11:44:40 -0400

In article <5b829932.0404170713.1283b293@posting.google.com>,
 francescomoi@europe.com (Francesco Moi) wrote:

> Thank you very much both.
>
> I was checking some codefiles and found lines like:
> ---
> rv = read(infd, outb, sizeof(outb))
> send(fd, outb, strlen(outb), 0)
> sendfile(fd, infd, 0, curstat.st_size)
> ---
> and I thought that they ware related with Sockets.

Functions beginning with "send" and "recv" are related to sockets.
read() and write() are generic to all types of streams.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

Quantcast