Subject: Re: libssh2 master 1b3b7b2... Add test to check if the socket is connected.

Re: libssh2 master 1b3b7b2... Add test to check if the socket is connected.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Jan 2010 08:14:57 +0100 (CET)

On Wed, 6 Jan 2010, Daiki Ueno wrote:

> if (connect(sock, (struct sockaddr*)(&sin),
> sizeof(struct sockaddr_in)) != 0) {
> fprintf(stderr, "failed to connect!\n");
> return -1;
> }
>
> in main() of ssh2.c.

Oh, right. We should fix those even though I consider those mistakes rather
minor as they are only examples...

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-01-06