Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INTERP mgmt and loading libraries like DLLs

Status
Not open for further replies.

johnlopez2000

Programmer
Aug 2, 2002
90
US
Colleagues,

I have a number of library and service libraries that I use for given programs that I run on an eMatrix ePLM database system. I can cause a program to become persistent at runtime by making it "pooled", which in the background actually spawns a persistent interpreter (you can see this in TCL Pro). It effectively is an independent thread in it's own interpreter.

What I need to do is to open a 2nd independent interpreter with a TCL program and "see" the PROCs defined in the first standing interpreter, much like when you load a DLL into memory, and all subsequent applications that use it access the common code.

It there a way to do this?

Thanks for your help.

John Lopez
Enterprise PDM Architect
john.l.lopez@goodrich.com
 
The only way I see to do that if for the resident server to open a server socket and wait for client calls.
This implies that the resident server is structured as a socket server.
The first tcl command needed is... socket.
And you can dig on some examples on the Tcler's wiki.

socket:
socket servers:

HTH

ulis
 
Ulis - thanks very much.

John Lopez
Enterprise PDM Architect
john.l.lopez@goodrich.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top