1941-docker-image-to-testdevel
| Line | |
|---|
| 1 | ###############################################################################
|
|---|
| 2 | #
|
|---|
| 3 | # tolshared.tcl -- communication layer of tolsh when acting as a shared.
|
|---|
| 4 | #
|
|---|
| 5 | ###############################################################################
|
|---|
| 6 |
|
|---|
| 7 | package provide tolshared 1.0
|
|---|
| 8 |
|
|---|
| 9 | ###############################################################################
|
|---|
| 10 | #
|
|---|
| 11 | # tolshared - namespace to encapsulate the shared state and behaviour
|
|---|
| 12 | #
|
|---|
| 13 | ###############################################################################
|
|---|
| 14 |
|
|---|
| 15 | namespace eval ::tolshared {
|
|---|
| 16 |
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | ###############################################################################
|
|---|
| 20 | #
|
|---|
| 21 | # start -- Start the shared
|
|---|
| 22 | #
|
|---|
| 23 | ###############################################################################
|
|---|
| 24 | proc ::tolshared::start {} {
|
|---|
| 25 | global tqs_info
|
|---|
| 26 | package require Mk4tcl
|
|---|
| 27 | package require tequilas
|
|---|
| 28 |
|
|---|
| 29 | puts "::tolshared::start"
|
|---|
| 30 | mk::file open tqs tequilas.dat -nocommit
|
|---|
| 31 | set tqs_info(verbose) 0 ;# default logging is off
|
|---|
| 32 | TqsTimer "" ;# default commit timer is 30 seconds
|
|---|
| 33 | tqsRun 20458 ;# default port is 20458
|
|---|
| 34 | }
|
|---|
Note: See
TracBrowser
for help on using the repository browser.