Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92c8d311ed1c192a64a41d666fd2393e7393df4ec93fade1ddec109138019a0d
Ticket: 6ea66b3b19e055fde7a1a584bef7095308864af9
Improve descripton for [chan configure … -sockname] according to server socket parameters
User & Date: elfring on 2019-05-05 17:38:18
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    I have tried the following command out for the software “TCL 8.6.9-1.5” on an openSUSE system.
    
    % set target [chan configure [set so [socket -server handle_input -myaddr localhost 0]] -sockname]
    127.0.0.1 localhost 45833 ::1 localhost 45833
    
    
    Now I wonder how parts of the shown data fit to the following wording from the documentation.
    https://www.tcl.tk/man/tcl/TclCmd/socket.htm#M13
    “…
    For server sockets this option returns a list of a multiple of three elements each group of which have the same meaning as described above. The list contains more than one group when the server socket was created … with the argument to -myaddr being a domain name that resolves multiple IP addresses that are local to the invoking host.
    …”
    
    
    Should any higher level functions be used to extract meaningful connection parameters in a safe way here?
    
  5. foundin changed to: "8.6.9"
  6. is_private changed to: "0"
  7. login: "elfring"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "elfring"
  13. subsystem changed to: "18. Commands M-Z"
  14. title changed to:
    Improve descripton for “chan configure … -sockname” according to server socket parameters
    
  15. type changed to: "RFE"