🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get socket state from port number

#14489
From: Kristoffer Persson
Date: Tue, 12 Aug 2003 13:28
15 lines
1388 bytes
Seems like GetTcpTable provides the information I need.

- Kristoffer -

"Kristoffer Persson" <no@email> wrote in message
news:3f38ced7$1@newsgroups.borland.com...
> 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: <3f38eb81$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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
References: <3f38ced7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,40edf04b7d0774fc
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-12 06:36:01 PST
From: "Kristoffer Persson" <no@email>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f38ced7$1@newsgroups.borland.com>
Subject: Re: Get socket state from port number
Date: Tue, 12 Aug 2003 15:28:28 +0200
Lines: 17
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: <3f38eb81$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060694913 193.15.214.81 (12 Aug 2003 06:28:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!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