Does anyone have any info on how to implement/use
sockets in tcl/tk. It looks very straight forward :
use the socket command then puts/gets to send/receive.
I've tried this and fconfigured the socket every
which way, but alas my poor server is still so lonely.
I do get the initial connect between the client and the
server, but when I try to puts - nada, zilch, like NULL !
Here is what I am doing from the client side :
set esport 20496
set mysocket [socket $inet_addr $esport]
if {[eof $mysocket]} {
puts "Socket Failed !"
} else {
fconfigure $mysocket -buffering none -buffersize 1000 -blocking 0
puts [fconfigure $mysocket]
puts "Socket OK !"
}
then later to send stuff:
puts $mysocket 111111
The server responds to the original connect but not the puts !
Any suggestions ?
Tim
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).