Socket, cannot get clean results.

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.
 
N

nobull

[...] stuff being shown. [...]

[ nothing shown ]
just a finger in the right direction would be much appreciated. thanks.

Please constuct a minimal but complete program to illustrate your
problem.
This and much other advice can be found in the posting guidelines that
are regularly posted to the newsgroup that replaced this one when when
the latter ceased to exist (see FAQ).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top