🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A Question on Sockets and DLL

#4230
From: mike
Date: Mon, 07 Mar 2005 13:53
60 lines
3124 bytes
Bob,

Thanks for replying, I appreciate it.

Ok so let me try and clarify a bit more.

> You weren't clear if the "Clients" are just several threads in a
> single Process, or seperate Processes.

The Clients connect to a single process and each connection is a thread 
within the process.


> Multiple Threads within a single Process can access the same instance
> of the DLL. They will share the DLL, and all of it's data.
>
> As to "conflict", that depends on what sort of conflilct you are
> concerned about, and how the DLL was written.

So in my case it is necessary to have the data returned from the DLL be 
independent of any other thread calling the same procedure from the DLL. I'm 
almost positive the DLL is not written in a threaded manner.

So if I need to keep the data discrete between the multiple threads within 
my process is it acceptable to use the syncronize manner of accessing the 
DLL, or is there some other way for me to approach the problem.

Any additional help with this would certainly be appreciated.

Mike


"Bob Gonder" <notbg@notmindspring.invalid> wrote in message 
news:j8bm21hiql7v0dhlde0vaemcm7a10ib71m@4ax.com...
> mike wrote:
>
>>I have a central module into which multiple clients will connect via
>>blocking sockets. Each connection initiates its own socket class.
>
> You weren't clear if the "Clients" are just several threads in a
> single Process, or seperate Processes.
>
>>Now each client must get information by making a call to a DLL of which I
>>don't have control of, that is written by a third party. So my question is
>>do I have to load the DLL within each client connection in order to not 
>>have
>>any conflicts, or can I load the DLL once and have each client use the the
>>DLL without conflict.
>
> Each Process must load the DLL. Each instance will have it's own copy
> of the DLL's data.
>
> Multiple Threads within a single Process can access the same instance
> of the DLL. They will share the DLL, and all of it's data.
>
> As to "conflict", that depends on what sort of conflilct you are
> concerned about, and how the DLL was written.
>
>
> 
Technical Details
Message-ID: <422c5d02$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422b24ec@newsgroups.borland.com> <j8bm21hiql7v0dhlde0vaemcm7a10ib71m@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fce3d93441a242e3
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "mike" <mfbrowne@earthlink.nnet>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <422b24ec@newsgroups.borland.com> <j8bm21hiql7v0dhlde0vaemcm7a10ib71m@4ax.com>
Subject: Re: A Question on Sockets and DLL
Date: Mon, 7 Mar 2005 08:53:51 -0500
Lines: 62
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 68.204.189.169
Message-ID: <422c5d02$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110203650 68.204.189.169 (7 Mar 2005 05:54:10 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail