Maybe I'm saying nonsense but, it could be the short timeout
value makes the connection to go away before it gets any
data?
Bye!
>
> Bas Wijnen wrote:
>
> > Giuseppe Scrivano wrote:
> >
> >> server_socket = socket (PF_INET, SOCK_STREAM, 0);
> >
> > Check if the call succeeded (server_socket >=
Bas Wijnen wrote:
Giuseppe Scrivano wrote:
server_socket = socket (PF_INET, SOCK_STREAM, 0);
Check if the call succeeded (server_socket >= 0)
/* address family. */
sock_in.sin_family = PF_INET;
/* port used. */
sock_in.sin_port = htons (8080);
sock_in.sin_addr.s_addr = INADDR_ANY;
Giuseppe Scrivano wrote:
server_socket = socket (PF_INET, SOCK_STREAM, 0);
Check if the call succeeded (server_socket >= 0)
/* address family. */
sock_in.sin_family = PF_INET;
/* port used. */
sock_in.sin_port = htons (8080);
sock_in.sin_addr.s_addr = INADDR_ANY;
err = bind (s
Hi,
This simple C program seems to work differently on
hurd and on linux. While under linux the dataToRead
function returns 1 when a connection is up, under hurd
this function always returns 0.
Regards,
Giuseppe Scrivano
___
Nuovo Yahoo! Messen