On Wed, Oct 22, 2003 at 07:53:10PM -0700, Lev Walkin wrote: > Everything's fine apart from one thing: connect() does not like to > connect to places with destination port equal to zero.
> /* > * This will do. Note that it assumes AF_INET. > */ > ((struct sockaddr_in *)res->ai_addr)->sin_port = htons(80); Many many many thanks for this! You're a champ! Edwin, will never forgot this lesson. -- Edwin Groothuis | Personal website: http://www.mavetju.org [EMAIL PROTECTED] | Weblog: http://www.mavetju.org/weblog/weblog.php _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"