🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17640

Re: binded address

#17640
From: Remy Lebeau (TeamB)
Date: Fri, 07 Mar 2003 18:27
18 lines
1391 bytes
"Boguslaw Fries" <B.Fries@luca-online.de> wrote in message
news:3e68956a@newsgroups.borland.com...

> If I have a pointer to a opened Socket, could I
> find the information about Remote address and
> Remote Port?

Use getpeername() for that.  The sockaddr structure is filled in with
information about the remote end of the connection.

> Local Address and Local Port is simple:
<snip>

Use getsockname() instead of getsockopt().


Gambit
Technical Details
Message-ID: <3e68e277$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e68956a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,522e24851519f924
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-07 10:24:11 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e68956a@newsgroups.borland.com>
Subject: Re: binded address
Date: Fri, 7 Mar 2003 10:27:26 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3e68e277$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047061111 207.175.226.26 (7 Mar 2003 10:18:31 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!hermes.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail