Click here to Skip to main content
11,584,208 members (54,077 online)
Click here to Skip to main content

PiGeOn mail server executable and client DLL

, 7 Apr 2005 41.2K 4K 23
Rate this:
Please Sign up or sign in to vote.
LAN/WAN wide task/process message server and user message function DLL

Introduction

This is a server program that runs a service on a node on the LAN, and a DLL, PGODLL.dll (which uses BOSDLL.dll), so that user-programs, that have been built to use the functions in this DLL, may converse.

C/C++ programs include PGOmail.h, PGOcalls.h and the resource PGODLL.lib. PGOmail.h, PGOcalls.h and PGOfuncts.doc explain how it is done.

VB programs include PGODLL.bas, and use the public functions therein. PGODLL.bas and PGOfuncts.doc explain how it is done.

Installation

The DLLs

Place the file PGOdist.zip in a directory of your choice, e.g., C:\whatever. Extract Here (using unzip). Go to the directory choice\PGOw\PGOdist where you will find the file PGOdist.bat. You may wish to edit this file to reflect your preferences. Double-click on this. Unedited, this will copy PGODLL.dll (and BOSDLL.dll), into %systemroot%\system32, so that C/C++ programs can use it (them), and register them so that VB programs can use it (them).

The Service

Place the file PGOsvrDist.zip in a directory of your choice, e.g., C:\whatever. Extract Here (using unzip). Go to the directory choice\PGOw\PGOsvrDist where you will find the file PGOsvrDist.bat. You may wish to edit this file to reflect your preferences. Double-click on this. Unedited, this will create a directory C:\Program Files\Lymington and two sub-directories \Data and \Exe. Go to C:\ Program Files\Lymington\Exe where you will find the file PGOsRS.bat. You may wish to edit this file to reflect your preferences. Double-click this and/or add to Scheduled Tasks to run once at boot-up. This will run PGOs.exe on the local node. PGOs.exe may be stopped by double-clicking StopPGOsvr.exe; or, at any time, stopped, if running and restarted, by double-clicking on PGOsRS.bat.

Using the code

VC 6.0 projects: Place the PGODLL.dll in a directory on your path variable. Add the library PGODLL.lib to the project resources. Add the modules PGOmain.h and PGOcalls.h to the project. Use the routines therein.

VB 6.0 projects: Register the PGODLL.dll with regsvr32. Add the module PGODLL.bas to the project. Use the public routines therein.

VB source code to produce the above windows is to be found in the demo VB project.

Points of Interest

PGO mail was developed as a 'Homer' and completed in Feb 2003. It found a use with three programmers, at separated offices (two offices 250 miles apart), who were developing:

  • A VB.NET GUI.
  • An OPC server add-on data-source.
  • A 48 modem line driver to capture region-wide data for the OPC server.
  • With PGOs.exe running on an agreed node, the programs were co-operating within three weeks. The feedback to the implementation design was unusually early. Because the message i/face de-coupled the programs, the modifications/developments were also de-coupled.
  • When the suite was moved to the target node, the service was confined to this node by using the IP 'localhost'.

History

  • 3.4 Comment/Logging maintenance.
  • 3.2 Server-side 'select' timeout is reduced from 50 to 1 millisecond. This allows faster transfer, though one's machine will get busier.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Lymington
Web Developer
United Kingdom United Kingdom
BSc (St.Andrews(1963-67))
MSCE
Systems Programmer 39+yrs
Married to first wife 35yrs & counting, four grown-up children
Religious opinions similar to MelG's
It is not the gnosis, but the praxis must be the fruit. (Aristotle)

You may also be interested in...

Comments and Discussions

 
GeneralSome thoughts. Pin
solo10-May-04 22:11
membersolo10-May-04 22:11 
GeneralRe: Some thoughts. Pin
Lymington11-May-04 1:33
memberLymington11-May-04 1:33 
GeneralRe: Some thoughts. Pin
solo11-May-04 18:44
membersolo11-May-04 18:44 
GeneralRe: Some thoughts. Pin
Lymington13-May-04 0:41
memberLymington13-May-04 0:41 
GeneralMissing (at least) Pin
c2j23-May-04 23:24
memberc2j23-May-04 23:24 
GeneralRe: Missing (at least) Pin
Lymington8-May-04 5:58
memberLymington8-May-04 5:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 7 Apr 2005
Article Copyright 2004 by Lymington
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid