From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0d0bcfa5c119e6439bc89db35a8ef847@plan9.jp> To: 9fans@cse.psu.edu Subject: Re: [9fans] csipinfo From: Joel “chesky” Salomon Date: Wed, 18 Oct 2006 01:53:11 -0400 In-Reply-To: <39aec9dd7681e0afa7ce3809ba990d69@plan9.bell-labs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: cbea2c7a-ead1-11e9-9d60-3106f5b1d025 > See getnetconninfo in dial(2). Thanks! I was calling getnetconninfo already for the remote-end =E2=80=9C= port number=E2=80=9D and I=E2=80=99d overlooked the fact that the address= , in *some* form, was there too. So should this invocation: NetConnInfo *i =3D getnetconninfo(nil, lfd); Ndbtuple *t =3D csipinfo(nil, ipattr(i->raddr), i->raddr, ["ip", "dns"],= 2); work, or am I working too hard? Getnetconninfo will return either the ip= address or the dns name (less likely), not both, so I still need csipinf= o, right? --Joel