[ECOS] network problems

Andrew Lunn andrew.lunn@ascom.ch
Thu Apr 10 07:17:00 GMT 2003

> I then try the following:
>      FD_ZERO(&fd_read);
>      FD_SET(TCPComm.socket_active, &fd_read);
>      select(1, (fd_set *)&fd_read, (fd_set *)0, (fd_set *)0, (struct timeval
> *)NULL)
>      cmdSize = recvfrom(TCPComm.socket_active, (void *)Cmd, sizeof(Cmd), 0,
> (struct sockaddr *)&sin, (socklen_t *)&sin_len);
> However, select never returns when I send the device a message!

Read the man page for select again. You probably don't want to be
passing 1 for the first parameter to select.


Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list