🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: i need ideas/comments with tclientsocket

#3142
From: Remy Lebeau (TeamB)
Date: Thu, 03 Nov 2005 18:03
21 lines
1783 bytes
"Alfred" <alf@no.spam.not.valid.email> wrote in message
news:436a4574$1@newsgroups.borland.com...

> How can I insert a simple "Int proxy;" in each Socket so each connection
> have a different "int proxy;" ? Need to use Socket->Data ?

Yes.

> how it work ?

The Data is just a void* pointer, which a is 32-bit value.  An int is also a
32-bit value.  If all you are storing is an int, then cast it back and forth
directly:

    int i = 12345;
    Socket->Data = (void*) i;
    i = (int) Socket->Data;


Gambit
Technical Details
Message-ID: <436a50c9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43662baf$1@newsgroups.borland.com> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$1@newsgroups.borland.com> <4366deb1$1@newsgroups.borland.com> <43670f39@newsgroups.borland.com> <4367f9ea$1@newsgroups.borland.com> <4369a04d$1@newsgroups.borland.com> <436a4574$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5c33b8c6a9ca7fdb
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43662baf$1@newsgroups.borland.com> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$1@newsgroups.borland.com> <4366deb1$1@newsgroups.borland.com> <43670f39@newsgroups.borland.com> <4367f9ea$1@newsgroups.borland.com> <4369a04d$1@newsgroups.borland.com> <436a4574$1@newsgroups.borland.com>
Subject: Re: i need ideas/comments  with tclientsocket
Date: Thu, 3 Nov 2005 10:03:04 -0800
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <436a50c9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131040969 68.69.17.41 (3 Nov 2005 10:02:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail