Changeset a168f52 in tol for tolsh/tolsh.vfs/lib/tolcomm


Ignore:
Timestamp:
Dec 6, 2010, 9:22:59 PM (16 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
4e49e21
Parents:
10a207c
Message:

refs #1028, tequila server is started on the first available port starting from port number 20458.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2747 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tolsh/tolsh.vfs/lib/tolcomm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tolsh/tolsh.vfs/lib/tolcomm/tolserver.tcl

    r10a207c ra168f52  
    452452  array set options {
    453453    -port 6669
     454    -shport 20458
    454455    -logfile ""
    455456    -compile ""
    … …  
    467468  }
    468469 
    469   server_attach_data
     470  server_attach_data $options(-shport)
    470471
    471472  log "debug" "shared_tasks(init)=$options(-compile)"
    … …  
    474475}
    475476
    476 proc ::tolserver::server_attach_data {} {
     477proc ::tolserver::server_attach_data { shared_port } {
    477478  package require tequila
    478479  global shared_tasks
    … …  
    480481  global shared_finish
    481482
    482   tequila::open localhost 20458
     483  tequila::open localhost $shared_port
    483484  tequila::attach shared_tasks
    484485  tequila::attach shared_state
  • tolsh/tolsh.vfs/lib/tolcomm/tolshared.tcl

    r10a207c ra168f52  
    2222#
    2323###############################################################################
    24 proc ::tolshared::start {} {
     24proc ::tolshared::start { port datadir } {
    2525  global tqs_info
    2626  package require Mk4tcl
    … …  
    2828
    2929  puts "::tolshared::start"
    30   mk::file open tqs tequilas.dat -nocommit
     30  # OJO: este archivo hay abrirlo en algun directorio controlado
     31  mk::file open tqs [ file join $datadir tequilas.${port}.dat ] -nocommit
    3132  set tqs_info(verbose) 0     ;# default logging is off
    3233  TqsTimer ""                 ;# default commit timer is 30 seconds
    33   tqsRun 20458                ;# default port is 20458
     34  tqsRun $port                ;# default port is 20458
    3435}
Note: See TracChangeset for help on using the changeset viewer.