🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Get socket state from port number

#14485
From: Kristoffer Persson
Date: Tue, 12 Aug 2003 11:26
7 lines
1152 bytes
Hi all!

I'd like to know how I can tell if there is a connection on a port on the
computer. Maybe I should call getsockopt, but it requires a socket
parameter. Can I get the socket from the port number? What do I need?

- Kristoffer -
Technical Details
Message-ID: <3f38ced7$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!priapus.visi.com!news-out.visi.com!petbe.visi.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,40edf04b7d0774fc,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-12 04:33:40 PST
From: "Kristoffer Persson" <no@email>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Get socket state from port number
Date: Tue, 12 Aug 2003 13:26:16 +0200
Lines: 9
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 193.15.214.81
Message-ID: <3f38ced7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060687575 193.15.214.81 (12 Aug 2003 04:26:15 -0700)
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!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail