Re: Messaging alert
- From: Ralf Fassel <ralfixx@xxxxxx>
- Date: Wed, 08 Mar 2006 16:45:18 +0100
* Fernando Quinones <fernandoq@xxxxxxxxxxxxx>
| The important question now is how do I send the information from the
| client to the server, lets say something like a filename. Where do I
| pack that information. Moreover, once I get that information on the
| server how do I send a message back to the client that I am done
| with processing the file.
Just use 'puts' on the socket (client) or on the newSock argument to
the Accept2 proc (server) to write data and 'gets/read' to receive
data. Both of these channels are read-write. What you 'puts' in the
server you can 'gets/read' on the client and vice versa.
http://www.tcl.tk/man/tcl8.4/TclCmd/socket.htm
has a small example at the end.
http://wiki.tcl.tk/socket
is more elaborate.
HTH
R'
.
- References:
- Re: Messaging alert
- From: Fernando Quinones
- Re: Messaging alert
- Prev by Date: Re: simple user interface
- Next by Date: Re: Messaging alert
- Previous by thread: Re: Messaging alert
- Next by thread: simple user interface
- Index(es):
Relevant Pages
|