🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

getsockopt

#17655
From: Boguslaw Fries
Date: Sat, 08 Mar 2003 19:38
12 lines
1301 bytes
I have  question concerning getsockopt
I have a valid ( I hope ) pointer to a socket
the function getsocketname( s , SOCKADDR * ) &ame strlen( SOCKADDR_IN ))
returns proper name i.e  IP and port are correct

but
int sockType,
 getsockopt( s , SOL_SOCKET , SO_TYPE,  ( char FAR * ) &sockType, sizeof(
sockType ))
 returns invalid type - sockType == 2  but should be 1 ( TCP not UDP )
what is wrong??
Boguslaw Fries
Technical Details
Message-ID: <3e6a47b9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,dfa415dfd2f786cf,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-08 11:52:01 PST
From: "Boguslaw Fries" <B.Fries@luca-online.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: getsockopt
Date: Sat, 8 Mar 2003 20:38:13 +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.187.191
Message-ID: <3e6a47b9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1047152569 80.130.187.191 (8 Mar 2003 11:42:49 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail