TClientSocket Collection (index)

Posted on 2004-11-26
Last Modified: 2010-04-05
Hey I need some help figreing out how to make a collection of sockets or index as u call it in vb in vb u can index ur winsock well tahst what i wanna do here in delphi but i know there is no index so i have to make a collection of sockets any help on how? thanks
Question by:_Reaper_
    1 Comment
    LVL 4

    Accepted Solution

    Which component set are you using ? If it's Indy, you can find some usefull examples from the Indy's official demos As i remember "Chat" demo provides something like that. Indy is not including something like "socket index". There is an Indy component which called TIdTCPServer, which is including a thread list for incoming connections. But if you are talking about to have a list of outgoing connections(i mean clients), there is no easy way to do it with Indy. You should implement it by yourself. With using TList or it's descendants.


    Oktay Sancak

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now