| delorie.com/archives/browse.cgi | search |
| From: | banders AT switch DOT rockwell DOT com (Bart Anderson) |
| Subject: | connect() failure |
| 9 May 1997 19:35:41 -0700 : | |
| Sender: | mail AT cygnus DOT com |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <33735930.5007.cygnus.gnu-win32@switch.rockwell.com> |
| Reply-To: | banders AT switch DOT rockwell DOT com |
| X-Mailer: | Mozilla 3.01 (Win95; I) |
| MIME-Version: | 1.0 |
| Original-To: | gnu-win32 AT cygnus DOT com |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Has anyone encountered this problem with connect? I checked the faq and
the archive, but couldn't find anything that popped out at me.
Porting a unix tool I had written on the sun, I had to cast the
sockaddr_in sturcture to sockaddr structure which I see has padding for
the sockaddr_in. Are these fields not used? If not, how would I get
similar functionality?
_
/* connect to the host
*/ _
ret = connect( sd, ( struct sockaddr * ) (struct sockaddr_in * )
&sd_name,_
sizeof( struct sockaddr_in
)); _
_
Thanks,
Bart.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |