I received the book I ordered and was very disappointed. The book said
copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if the
web was around in '89. The C is a very strange syntax pre-ANSI I would say:
main(argc, argv)
int argc;
char *argv[];
Bill
|
|
0
|
|
|
|
Reply
|
nospam116 (1187)
|
4/20/2010 1:51:25 PM |
|
Bill Cunningham <nospam@nspam.invalid> wrote:
> I received the book I ordered and was very disappointed. The book said
> copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if the
> web was around in '89. The C is a very strange syntax pre-ANSI I would say:
>
> main(argc, argv)
> int argc;
> char *argv[];
What book was it Bill?
Mark.
--
Mark Hobley
Linux User: #370818 http://markhobley.yi.org/
|
|
0
|
|
|
|
Reply
|
markhobley550 (897)
|
4/20/2010 5:14:47 PM
|
|
Mark Hobley wrote:
> What book was it Bill?
It's called "UNIX networking" by Kochan and Wood. So much can be done
with gettaddrinfo() now but the code in this book declares many objects of
type struct sockaddr and all the other struct declared in socket.h and
netdb.h.
Bill
|
|
0
|
|
|
|
Reply
|
nospam116 (1187)
|
4/20/2010 6:30:04 PM
|
|
On 2010-04-20, Bill Cunningham wrote:
> I received the book I ordered and was very disappointed. The book said
> copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if the
> web was around in '89. The C is a very strange syntax pre-ANSI I would say:
>
> main(argc, argv)
> int argc;
> char *argv[];
This is not a "very strange syntax", this is K&R C.
--
Unix is simple. It just takes a genius to understand its simplicity
--Dennis M. Ritchie
|
|
0
|
|
|
|
Reply
|
news204 (7)
|
4/20/2010 7:08:16 PM
|
|
"Bill Cunningham" <nospam@nspam.invalid> writes:
>Mark Hobley wrote:
>> What book was it Bill?
> It's called "UNIX networking" by Kochan and Wood. So much can be done
>with gettaddrinfo() now but the code in this book declares many objects of
>type struct sockaddr and all the other struct declared in socket.h and
>netdb.h.
I believe they told you to get a more modern book. The one you got was
written in the late 1980's as the copyright shows, and hasn't been
updated. Lots of things change in 21+ years. :) Especially things
like ANSI C coming out in 1989. Before ANSI C, things did have to be
done as you quoted in your first post in this thread, not everyone
tracked pre-ANSI C coding standards and coded in the latest style back
then. The '90's was an era for big changes in Unix, so be careful of
anything written in the '90s and before.
The one they told you you should get was
http://www.amazon.com/Unix-Network-Programming-Sockets-Networking/dp/0131411551
Caution, this one started out fairly long ago too, but it has been
updated to reflect somewhat current stuff. Older editions are going
to be different than the latest version in covering stuff, especially
modern programming APIs.
At least you shouldn't have paid much for the Kochan and Wood book. I
have it (from when it was new), and its an okay book. Not anywhere
as good as the Stevens book though.
|
|
0
|
|
|
|
Reply
|
Doug
|
4/20/2010 7:32:57 PM
|
|
"Doug McIntyre" <merlyn@geeks.org> wrote in message
news:4bce0169$0$50145$8046368a@newsreader.iphouse.net...
> I believe they told you to get a more modern book.
Well I don't know who they are.
The one you got was
> written in the late 1980's as the copyright shows, and hasn't been
> updated. Lots of things change in 21+ years. :)
Indeed.
Especially things
> like ANSI C coming out in 1989. Before ANSI C, things did have to be
> done as you quoted in your first post in this thread, not everyone
> tracked pre-ANSI C coding standards and coded in the latest style back
> then. The '90's was an era for big changes in Unix, so be careful of
> anything written in the '90s and before.
>
> The one they told you you should get was
> http://www.amazon.com/Unix-Network-Programming-Sockets-Networking/dp/0131411551
You would go ahead and recommend this one then even though it's a little
old itself?
> Caution, this one started out fairly long ago too, but it has been
> updated to reflect somewhat current stuff. Older editions are going
> to be different than the latest version in covering stuff, especially
> modern programming APIs.
[...]
|
|
0
|
|
|
|
Reply
|
nospam116 (1187)
|
4/20/2010 7:40:43 PM
|
|
"Bill Cunningham" <nospam@nspam.invalid> writes:
>> http://www.amazon.com/Unix-Network-Programming-Sockets-Networking/dp/0131411551
> You would go ahead and recommend this one then even though it's a little
>old itself?
Yes, not alot of changes in the Networking API front since 2003.
Earlier editions were getting a bit dated, but this edition had a good
extensive refresh all around. While there may be some changes to some
aspect, this book has stood the time as the bible of TCP/IP socket programming.
|
|
0
|
|
|
|
Reply
|
Doug
|
4/20/2010 10:50:58 PM
|
|
In article <slrnhsrut0.fjj.vpm+news@pitchu.serengetty.fr>,
Vivien MOREAU <vpm+news@serengetty.fr> wrote:
> On 2010-04-20, Bill Cunningham wrote:
>
> > I received the book I ordered and was very disappointed. The book said
> > copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if the
> > web was around in '89. The C is a very strange syntax pre-ANSI I would say:
> >
> > main(argc, argv)
> > int argc;
> > char *argv[];
>
> This is not a "very strange syntax", this is K&R C.
That's what he said: "pre-ANSI".
It's strange in the same way that Shakespearean English seems strange
now.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
0
|
|
|
|
Reply
|
barmar (5626)
|
4/21/2010 3:58:49 AM
|
|
Barry Margolin <barmar@alum.mit.edu> writes:
> In article <slrnhsrut0.fjj.vpm+news@pitchu.serengetty.fr>,
> Vivien MOREAU <vpm+news@serengetty.fr> wrote:
>
>> On 2010-04-20, Bill Cunningham wrote:
>>
>> > I received the book I ordered and was very disappointed. The book said
>> > copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if the
>> > web was around in '89. The C is a very strange syntax pre-ANSI I would say:
>> >
>> > main(argc, argv)
>> > int argc;
>> > char *argv[];
>>
>> This is not a "very strange syntax", this is K&R C.
>
> That's what he said: "pre-ANSI".
This is not quite true. Except the missing return type, this is (as of
C99) still valid C, although the C-standard calls it 'obsolescent'.
|
|
0
|
|
|
|
Reply
|
rweikusat (2679)
|
4/21/2010 9:33:57 AM
|
|
In article <87aasxup2y.fsf@fever.mssgmbh.com>,
Rainer Weikusat <rweikusat@mssgmbh.com> wrote:
> Barry Margolin <barmar@alum.mit.edu> writes:
> > In article <slrnhsrut0.fjj.vpm+news@pitchu.serengetty.fr>,
> > Vivien MOREAU <vpm+news@serengetty.fr> wrote:
> >
> >> On 2010-04-20, Bill Cunningham wrote:
> >>
> >> > I received the book I ordered and was very disappointed. The book
> >> > said
> >> > copyright 89 and 90 and had one chapter on TCP/IP. I don't even know if
> >> > the
> >> > web was around in '89. The C is a very strange syntax pre-ANSI I would
> >> > say:
> >> >
> >> > main(argc, argv)
> >> > int argc;
> >> > char *argv[];
> >>
> >> This is not a "very strange syntax", this is K&R C.
> >
> > That's what he said: "pre-ANSI".
>
> This is not quite true. Except the missing return type, this is (as of
> C99) still valid C, although the C-standard calls it 'obsolescent'.
Who said it was invalid? He just said it was strange. As you pointed
out, it's obsolescent, and has been out of fashion for two decades. So
it's quite unusual to see it these days.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|
0
|
|
|
|
Reply
|
barmar (5626)
|
4/22/2010 12:51:52 AM
|
|
|
9 Replies
83 Views
(page loaded in 0.153 seconds)
Similiar Articles: Solution Compiler: Principles, Techniques and Tools - Dragon book ...Hi I have been studying the book Compiler: Principles, Techniques and Tools by Alfred V. Aho, Ravi Sethi and Jeffrey D. Ullman, better known as the Dr... Book Port - comp.sys.mac.appsI am sight impaired and would like to make contact with anyone running a "Book Port" audio book reader on an Intel Mac. Thanks ... Solution Manual to Oppenheim's book - comp.dspHi, Does anyone know a good source for buying a copy of the solutions manual for Alan Oppenheim's Discrete-time Signal Processing book, 1st edition (... Report Generator Book - comp.soft-sys.matlabCan anyone receommend a good book on using the Report Generator module in MatLab? I've looked at some of the examples and information, but would like ... For Dummies Book Subject Font - comp.fontsWhat is the name of the font used in the specific book subject of "For Dummies" books? Not the part that actually says for dummies, but the part that ... Best AWK book? - comp.unix.shellDear All, I would like to get a good beginners introduction to awk, including how to program with awk. Any tips on which book to get - in print or... Pre-Publication Release of New Book - comp.lang.idl-pvwave ...Folks, I am announcing today a pre-publication release of my new IDL book, Coyote's Guide to Traditional IDL Graphics, in PDF format. This is a d... lost address book? - comp.mail.eudora.ms-windows(v 7.1.0.9, light mode, running since forever.) Eudora went a little rogue on me today, and wouldn't let me open any of its folders. I cleared th... Have to move a Thunderbird Address Book -- How ? - comp.os.os2 ...Hi folks, I have moved my former in-box mail files from several versions of Thunderbird to an easily accessible common location for use with my c... New book - A Field Guide to Genetic Programming - No cost PDF ...A FIELD GUIDE TO GENETIC PROGRAMMING Riccardo Poli, William B. Langdon, Nicholas F. McPhee (with contributions from John R. Koza) ISBN 978-1-4092-0073... Welcome to Facebook - Log In, Sign Up or Learn MoreFacebook is a social utility that connects people with friends and others who work, study and live around them. People use Facebook to keep up with friends, upload an ... Book - Wikipedia, the free encyclopediaA book is a set of written, printed, illustrated, or blank sheets, made of ink, paper, parchment, or other materials, usually fastened together to hinge at one side. 7/13/2012 1:16:16 PM
|