From: Kristoffer L. <se...@fi...> - 2006-12-05 15:04:50
|
On Tue, 5 Dec 2006, Yosvany Llerena Rodr=EDguez wrote: > Hi, Guys ... I don't know if this is the right plase to make this=20 > question... Sorry about. No, this is not actually the correct place to ask questions such as this.= =20 It is a mailing list for core Tcl development only. The correct place to=20 ask is comp.lang.tcl or the #tcl channel on irc.freenode.net (or Tcl chat,= =20 someone can fill the details for that). > > I have this code for my sock server. In some part of my file tranfer I > need the confirmation in the client side I guess I put everithing > right but I don't see nothing in my cliente side. > Where are my problem?. I put this message in comp.lang.tcl and no body > have solution. I do not know exactly what you are trying to do, but your processFile=20 procedure looks odd. OK, so you read stuff from there.. and then what? You= =20 are never going to get the [eof] you are looking for as the client is=20 waiting for a response and thus never closes the socket. Of course the=20 client shouldn't close it anyway, as then it would not be able to read=20 from it. So your problem, as far as I can tell with a brief glance, is really that= =20 the server needs to be notified by the client, in one way or another, that= =20 the complete file has been transferred. Either it should wait for a key=20 string, or a length should be given beforehand. / http://www.fishpool.com/~setok/ |