UPDATE: -- Researching some more, I came upon IAC modes. I haven't yet found complete documentation on IAC modes but I found, http://cpansearch.perl.org/src/RJLEE/Net-TCP-PtyServer-1/lib/Net/TCP/PtyServer.pm, and pulled the following example.

my $telneg = ""; # Let's *try* to turn echo off on the remote side: $telneg .= chr(255).chr(254).chr(1); # IAC DONT ECHO $telneg .= chr(255).chr(251).chr(1); # IAC WILL ECHO # Also, we can't handle the GA signal: $telneg .= chr(255).chr(253).chr(3); # IAC DO SUPPRESS-GA $telneg .= chr(255).chr(251).chr(3); # IAC WILL SUPPRESS-GA # Try to turn off LINEMODE negotiation: $telneg .= chr(255).chr(254).chr(34); # IAC DONT LINEMODE $telneg .= chr(255).chr(252).chr(34); # IAC WONT LINEMODE # Ask for Negotiate About Window Size from the client: $telneg .= chr(255).chr(253).chr(31); # IAC DO NAWS

Which seems to set up my session and I added the line of code,

$poe_kernel->post( $session_id => send => $telneg );

, just before

$poe_kernel->post( $session_id => send => "CONNECT: $address/$port +\r\n" );

, to negotiate my session. It is working, I understand what is happening but I don't understand the fundamentals. If someone could point me to a more detailed discussion of IAC modes and telnet I would appreciate it. Thanks.


In reply to Re: POE telnet server - can't turn off client echo by Ray On The Ranch
in thread POE telnet server - can't turn off client echo by Ray On The Ranch

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.