🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Dynamic Socket creation

#4931
From: Dev Support
Date: Wed, 17 Nov 2004 23:51
25 lines
1362 bytes
Hey all:

The following code generates a declaration synatax error in the
TClientSocket line. Sorry for the simplicity but what am I doing wrong
here???

Thank you

Marshall

//******************************************************
#include <vcl.h>

TClientSocket *sock[10];        <<------error in this line

int sock_create_sockets(int qty)
    {
    int c = 0;

    for (c = 0; c < qty; c++)
        {
        sock[c] = new TClientSocket();
        }
    }
//***********************************************
Technical Details
Message-ID: <419bc484$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5836520d8672abcd,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Dev Support" <infsoft@centurytel.net>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Dynamic Socket creation
Date: Wed, 17 Nov 2004 15:51:30 -0800
Lines: 27
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: 69.29.175.192
Message-ID: <419bc484$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1100727428 69.29.175.192 (17 Nov 2004 13:37:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail