tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Listening (TCP) on single IP, not all IP's
@ 2002-03-06 17:08 Scott Adkins
  0 siblings, 0 replies; only message in thread
From: Scott Adkins @ 2002-03-06 17:08 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--==========701530825==========", Size: 1636 bytes --]

--==========701530825==========
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Thanks to Charles Ballowe for providing us with the solution so quick out
of the gate.  I have never had a solution within just a couple minutes of
sending out the email... thanks!

The solution is that we have to zero out the "sockaddr_in" structure
before actually using it.  So, the following snippet of code is what
Charles suggested:

  #include <string.h>
  ...

  int main()
  {
    struct sockaddr_in addr;
    bzero((void *)&addr, sizeof(struct sockaddr_in));
    ....
  }

Works like a charm!
Thanks.

Scott
--
 =
+-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D+=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D+=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-+
      Scott W. Adkins                http://www.cns.ohiou.edu/~sadkins/
   UNIX Systems Engineer                  mailto:adkinss@ohio.edu
        ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
 =
+-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D+=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D+=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-+
     PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/
--==========701530825==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: Mulberry PGP Plugin v2.0
Comment: processed by Mulberry PGP Plugin

iQA/AwUBPIZNAaYtNXY159L9EQID+ACdGfi6DgpP/Lrat4607KX2EPqT0dsAnRB/
SeIO7Zcz0aQcYXGYspkWxHVo
=aBca
-----END PGP SIGNATURE-----

--==========701530825==========--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-06 17:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-06 17:08 SUMMARY: Listening (TCP) on single IP, not all IP's Scott Adkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox