AF_INET sockets, code examples neede
lrr at siemens.UUCP
lrr at siemens.UUCP
Thu Jun 20 23:09:00 AEST 1985
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
More information about the Comp.unix
mailing list