Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Embedding Files in a starpack/starkit...

8 views
Skip to first unread message

Charles Heizer

unread,
Oct 6, 2005, 5:17:26 PM10/6/05
to
Hello,
I'm currently writting a small listener and I'm using TLS. I would like
to embed certfile and keyfile in to the kit. The issue comes when I try
to refference the two files when issuing my tls::init.

Does anyone if this is even possible?


Thanks,
- Charles

davidh...@simplifiedlogic.com

unread,
Oct 6, 2005, 11:29:38 PM10/6/05
to
If your listener is launching from within, and you need to address
these files with your application, look at the starkit::topdir for
guidance.

We use the following and it seems to work pretty well:

if {[info exists starkit::topdir]} {
set ::dir [file dirname [info script]]
set ::localdir [file dirname [file dirname [file dirname
$::dir]]]
} else {
set ::dir [file dirname [info script]]
set ::localdir $::dir
}

Dave

0 new messages