Glynn Clements wrote:
> Moisés Navarro Marín wrote:
>
> > When executing the following code (no threads and no forks) I receive a
> > Memory Fault error message:
> >
> >
> > printf ("Before accept\n")
> >
> > if ((new_socket = accept (start_socket, (struct sockaddr *) &address,
>&addrlen)) < 0)
>
> Are you performing
>
> addrlen = sizeof(struct sockaddr_in);
>
> prior to the call to accept()?
>
Yes. Well, what I really do is
==================
struct sockaddr_in address;
...
addrlen = sizeof (address)
...accept...
==================
Same thing.
Moises.