Artifacts Associated With Ticket 681499ffffffffffffffffffffffffffffffffff
Ticket change [b36767eba6] (rid 124855) by nobody on 2003-02-06 06:27:38:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- 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] - foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to: "socket -server fails to run command in tclsh"
- type initialized to: "Bug"
Ticket change [0fae029f85] (rid 94832) by dkf on 2003-02-06 21:09:34:
- assignee changed to: "andreas_kupries"
- subsystem changed to: "24. Channel Commands"
Ticket change [607b1939e6] (rid 116009) by dgp on 2003-02-06 22:19:45:
- assignee changed to: "dgp"
- closedate changed to: "2003-02-06T15:19:45"
- closer changed to: "dgp"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "dgp"