🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A Question on Sockets and DLL

#4320
From: Bob Gonder
Date: Sun, 06 Mar 2005 16:27
22 lines
1983 bytes
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: <j8bm21hiql7v0dhlde0vaemcm7a10ib71m@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!news.n-ix.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422b24ec@newsgroups.borland.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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: A Question on Sockets and DLL
Date: Sun, 06 Mar 2005 08:27:05 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <j8bm21hiql7v0dhlde0vaemcm7a10ib71m@4ax.com>
References: <422b24ec@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.144.107
X-Trace: newsgroups.borland.com 1110126423 67.77.144.107 (6 Mar 2005 08:27:03 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!zen.net.uk!dedekind.zen.co.uk!npeer.de.kpn-eurorings.net!news.n-ix.net!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail