Re: (Newbie) Help with sockets.



On Feb 28, 11:22 pm, Grant Edwards <gra...@xxxxxxxx> wrote:
On 2008-02-29, Gabriel Genellina <gagsl-...@xxxxxxxxxxxx> wrote:

En Fri, 29 Feb 2008 00:20:26 -0200, <mentaltruckdri...@xxxxxxxxx> escribió:

Hi everyone. I'm fairly new to Python, and even more new to socket
programming. I think I've wrapped my head around sockets, and with
that I want to create a Telnet-based chat server, the idea being
people connect to the telnet servers with their clients and they all
communicate. I've got the code working, but the server sends each
letter to the clients on a new line! I've read about this kind of
thing on Windows on Google, but I can't find a solution to this issue.

The telnet client can use "line mode" or "character mode". In "line mode"  
nothing is sent until the user press Enter; line editing is made on the  
client side. In "character mode" keystrokes are sent as soon as typed;  
probably your telnet client is using this mode.

That's definitely going to be a problem.

To the OP:

You claim to be writing a telnet server, yet I don't see any
code that actually implements the telnet protocol. Different
telnet clients default to different modes, so if you want them
in a certain mode, you have to put them in the desired mode by
implementing the telnet feature negotiation protocol.

--
Grant Edwards                   grante             Yow!  It's strange, but I'm
                                  at               only TRULY ALIVE when I'm
                               visi.com            covered in POLKA DOTS and
                                                   TACO SAUCE...

OP here - sorry for the confusion, it's just a listener program that
people connect to via telnet.

I'll take a look at the Twisted engine and see if that helps at all.
.



Relevant Pages

  • Re: inetd to take telnet request
    ... flavours of TELNET here - so I read on. ... I know about INETD only from long ago with the RS/6000 UNIX, ... server applications" in the CS IP Configuration Guide: ...
    (bit.listserv.ibm-main)
  • Re: Product for Running Embedded C# Application
    ... Telnet sessions or Web sessions with our Web server on the device and a lot ... There's a Telnet server available to Windows CE ... communicates with specific hardware and forwards data to a back end ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: RDP access to SBS 2003 - HELP please
    ... Might I add that 'out of the box', when I first got the server it worked ... of it to the telnet prompt and quit. ... Try the remote desktop connection to see if it works. ... the effect that it can't connect to xxx.xxx.xxx.xxx port 23. ...
    (microsoft.public.windows.server.sbs)
  • Re: Telnet session "Shell process may not have been launched" (Solution)
    ... this is a feature change in win2k3 server. ... Microsoft Online Partner Support ... >the 2003 Security Guide suggests you disable the service, ... but Telnet won't be functional without it. ...
    (microsoft.public.windows.server.general)
  • RE: Your message did not reach some or all of the intended recipie
    ... In your details you are saying to type the following command ... > SMTP telnet session. ... When the issue happens again, in the Exchange Server, please telnet ... > times to close the connection to the server and leave the Telnet session ...
    (microsoft.public.windows.server.sbs)