From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653731622593.tru64-unix-managers.marc@archive.invalid> From: Scott Adkins Date: Wed, 06 Mar 2002 17:08:15 +0000 To: tru64-unix-managers Subject: SUMMARY: Listening (TCP) on single IP, not all IP's X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653731622593 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--==========701530825==========" --==========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 ... 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==========--