[net.unix] AF_INET sockets, code examples neede

lrr@siemens.UUCP (06/20/85)

Without trying your code, haven't you committed a C sin by failing
to parenthesize the "nf = accept(fd, (caddr_t)&sin, &sz)" part?  Isn't
the relation "accept(...) < 0" computed first and the result assigned to
nf?  If accept is working, then the condition is false (0) so nf has
the value 0, and that's what you got.  I think that's it.

Larry Rogers
Siemens Research and Technology Laboratories
Princeton, NJ 08540
princeton!siemens!jaguar!lrr
609 734 6559