tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Scott Adkins <adkinss () ohio ! edu>
To: tru64-unix-managers
Subject: SUMMARY: Listening (TCP) on single IP, not all IP's
Date: Wed, 06 Mar 2002 17:08:15 +0000	[thread overview]
Message-ID: <102653731622593.tru64-unix-managers.marc@archive.invalid> (raw)

[-- 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==========--

                 reply	other threads:[~2002-03-06 17:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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