TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Chris Mcbrien
from: Peter Fitzsimmons
date: 1994-07-16 13:48:59
subject: DLL over a Network

CM> I am writing a DLL that will manage access to a central database on disk.

 CM> The problem I hae encountered is, what if instances of 
 CM> this program are running on another machine on a 
 CM> network.  Clearly, every machine will need access to


A dll is not required to do this (but can be used if you want).

There are two ways that I can think of to do what you want:

    1) File locking.  (See DosSetFileLocks()).   This is more
       traditional, and is what many DOS products use (Btrieve, Foxpro,
       Paradox, etc).  A system with more than a few users will have
       lots of contention at the network server though.

    2) Client/Server with Named Pipes.  This is a lot more cool,  and
       easier IMO.  Write a server process that services requests via a
       named pipe.  It will work with local clients with plain OS/2.
       With a LanServer/LanManager/Netware,  it will work with remote
       clients too.


--- Maximus/2 2.01

* Origin: Beer bellies = great waist. (905)858-8488 (1:259/414)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 259/414 400 99 98 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.