Skip to content
Tcl Source Code History Of Ticket 681499ffffffffff
Login

History Of Ticket 681499ffffffffff

Artifacts Associated With Ticket 681499ffffffffff

  1. Ticket change [b36767eba6] (rid 124855) by nobody on 2003-02-06 06:27:38:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      'socket -server command port' should set 'command' to
      be run whenever a client attempts to connect to 'port',
      but it does not.  Specifically, I run the following in
      tclsh8.3:
      
      proc temp {channel address port} {
        puts "channel $channel address $address port $port"
      }
      socket -server temp 2000
      
      I then run the following in a second tclsh8.3:
      
      socket myhost 2000
      
      I expect to see the puts command's output appear in the
      server's shell, but this does not happen.
      
      I have run the same code successfully with the server
      in a wish8.3 shell and in an expect shell, both using
      the same local .rc file as tclsh does.  The client's
      shell seems to make no difference.  The server also
      failed in tclsh8.0.
      
      I am running Debian linux 3.0 with kernel 2.4.18,
      tcl8.3 version 8.3.3-7, and glibc 2.2.5-10.
      
      Ashley Gadd
      [email protected]
      
    4. foundin initialized to: "obsolete: 8.3"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "18. Commands M-Z"
    10. title initialized to: "socket -server fails to run command in tclsh"
    11. type initialized to: "Bug"
  2. Ticket change [0fae029f85] (rid 94832) by dkf on 2003-02-06 21:09:34:

    1. assignee changed to: "andreas_kupries"
    2. subsystem changed to: "24. Channel Commands"
  3. Ticket change [607b1939e6] (rid 116009) by dgp on 2003-02-06 22:19:45:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2003-02-06T15:19:45"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      Did you start an event loop?
      
      From the [socket] documentation:
      
      Server sockets depend on the Tcl event mechanism to find out
      when new connections are opened. If the application doesn't
      enter the event loop, for example by invoking the vwait
      command or calling the C procedure Tcl_DoOneEvent, then no
      connections will be accepted. 
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
    9. username: "dgp"