Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: idTCPClient & idTCPServer

www.cryer.info
Managed Newsgroup Archive

Re: idTCPClient & idTCPServer

Subject:Re: idTCPClient & idTCPServer
Posted by:"Martin James" (nospam@dial.pipex.com)
Date:Tue, 15 Aug 2006 14:06:13

>
> When 2 clients connect i cant determine which one I am dealing with as
> aUsername and aPassword are clearerd each time some data is sent, I presume
> i need to attach this info to AContext somehow,

Exactly.

but how do I do this.

These 'socket context' thingies can usually be descended from to give
extra fields or contain an auxiliary 'data' pointer or object reference
that can contain a record/object that holds connection-specific data.
It is common to create such an object upon initial connection.

Rgds,
Martin

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive