Re: C Sockets Newbie: Easy question
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 04/17/04
- Next message: phil-news-nospam_at_ipal.net: "Re: Query a DNS in C"
- Previous message: Barry Margolin: "Re: multi-threads writing to single socket simultanously."
- In reply to: Francesco Moi: "Re: C Sockets Newbie: Easy question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ***
- Next message: phil-news-nospam_at_ipal.net: "Re: Query a DNS in C"
- Previous message: Barry Margolin: "Re: multi-threads writing to single socket simultanously."
- In reply to: Francesco Moi: "Re: C Sockets Newbie: Easy question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]