M
Manfred
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.
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.