Advertisement

difficults between linux and windows clients

Started by May 08, 2002 09:06 AM
1 comment, last by ibv 22 years, 8 months ago
I've written a little server who asks for an input. (like this: recv(cl, buffer, bufsize, 0); ) When I'm connecting with telnet on a linux-system there are no problems, I can write a string and press enter. But when I'm connecting again with telnet on a windows-system, you can only write one character, you don't even have to press enter! Is there an other function, to solve that problem, or do I make something wrong? Oh! a secound question (but the first one is more important): What can I do to write the stdout into a socket? So that i can send the output of curses. I hope erveryone understands my questions, because of my lousy english...thx! PS: ooops! sorry for that doubleposting! [edited by - ibv on May 8, 2002 10:09:42 AM]
I think I know what your talking about heh,

the default windows telnet client, it sends characters as soon as you type them in, one way of handeling this is to poll your socket to get one char at a time until ''/n'' is reached

Im sure it isnt the best solution, but it works

--LordKaT
Advertisement
mhm...i thougt about that idea too, but is there no function, which can handle that? well...ok, but thx!

This topic is closed to new replies.

Advertisement