Socket, cannot get clean results.
From: Manfred (fred_at_futura.net)
Date: 07/20/04
- Next message: Dave: "Re: padding left-justified string fields"
- Previous message: Dietrich: "File Handle Reading Blues: Rereading a File Handle for Input"
- Next in thread: nobull_at_mail.com: "Re: Socket, cannot get clean results."
- Reply: nobull_at_mail.com: "Re: Socket, cannot get clean results."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 Jul 2004 16:47:29 -0700
Hello,
I am working on an interactive server/client setup, not using
INET::Sockets. Everything is gravy except for a little leftover stuff
being shown. I type a command w/ args, CLIENT join()s the command with
args and sends the newstring,the SERVER split()s the newstring and
runs command w/ args, SERVER prints to CLIENT a response saying it ran
command. however, if i type another command, theres like a one line
buffer between the client and the server.
for instance, if i type `/exit' and hit <enter>, SERVER will close and
exit, but CLIENT stays open, and the client script is waiting for
another command, if i hit enter again it will close the client
script.Is the problem when SERVER prints to CLIENT the confirmation?
am i not flushing correctly? ive pretty much always had this problem
when working with sockets. just a finger in the right direction would
be much appreciated. thanks.
- Next message: Dave: "Re: padding left-justified string fields"
- Previous message: Dietrich: "File Handle Reading Blues: Rereading a File Handle for Input"
- Next in thread: nobull_at_mail.com: "Re: Socket, cannot get clean results."
- Reply: nobull_at_mail.com: "Re: Socket, cannot get clean results."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|