🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3987

BCB3 Valid Socket Syntax?

#3987
From: Joel Guerra
Date: Wed, 20 Apr 2005 18:55
13 lines
1370 bytes
I have the following code...

if(TCPSock->Socket->ActiveConnections>0){
  for(int i=0;i<TCPSock->Socket->ActiveConnections;i++){
     TCPSock->Socket->Connections[i]->Disconnect(i);
  }
}


I am ending up with extra connections, and I would like to close them up, so
I only have 1 connection in use at any given time..
Thanks,
Joel
Technical Details
Message-ID: <4266a594$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c851858d714de20c,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Joel Guerra" <j.guerra@texasscenic.com>
From: "Joel Guerra" <j.guerra@texasscenic.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: BCB3 Valid Socket Syntax?
Date: Wed, 20 Apr 2005 13:55:05 -0500
Lines: 15
Organization: Texas Scenic Company
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 66.118.7.42
Message-ID: <4266a594$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1114023316 66.118.7.42 (20 Apr 2005 11:55:16 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail