🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: binded address

#17650
From: Boguslaw Fries
Date: Sat, 08 Mar 2003 11:15
13 lines
1287 bytes
I did it

SOCKADDR_IN name;
SOCKADDR_IN speer;

getsockname( s, ( SOCKADDR *) &name, &namelen ) gives proper resulsts ( it
doeas mena local address and port  )
but
getpeername( s ( SOCKADDR * ) & speer, &namelen ) gives SOCKET_ERROR
and WSAGetLastError  gives 10057


Boguslaw Fries
Technical Details
Message-ID: <3e69d1eb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e68956a@newsgroups.borland.com> <3e68e277$1@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-08 06:42:45 PST
From: "Boguslaw Fries" <B.Fries@luca-online.de>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e68956a@newsgroups.borland.com> <3e68e277$1@newsgroups.borland.com>
Subject: Re: binded address
Date: Sat, 8 Mar 2003 12:15:40 +0100
Lines: 16
Organization: LUCA
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: 80.130.188.191
Message-ID: <3e69d1eb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047122411 80.130.188.191 (8 Mar 2003 03:20:11 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail