Greetings, I was trying to setup a socket server within NaviServer. 

Following the example listed under ns_sockcallback within the documentation. 
The example uses an detach procedure although when I attempt to use the syntax 
I get an invalid command name error 

[ https://naviserver.sourceforge.io/n/naviserver/files/ns_sockcallback.html | 
https://naviserver.sourceforge.io/n/naviserver/files/ns_sockcallback.html ] 

failed: invalid command name "detach" 
: TCL LOOKUP COMMAND detach 
: invalid command name "detach" 
: while executing 
: "detach $sock" 
: (file "Init.tcl" line 25) 
: invoked from within 
: "source $file" 

If I remove the detach, it creates the socket server however this only allows 
one connection and then refuses to initiate any other connections there after. 
Any insight would be great on how to allow multiple connections. 

Many Thanks, 
David Fox 

_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to