![]() client import BaseClient, BaseConnect from. terminal import spawn_client_session, on_naws from. # - from _future_ import absolute_import # std import socket import array import time import logging import select import errno from telnetlib import LINEMODE, NAWS, NEW_ENVIRON, ENCRYPT, AUTHENTICATION from telnetlib import BINARY, SGA, ECHO, STATUS, TTYPE, TSPEED, LFLOW from telnetlib import XDISPLOC, IAC, DONT, DO, WONT, WILL, SE, NOP, DM, BRK from telnetlib import IP, AO, AYT, EC, EL, GA, SB # local from import Disconnected from. See the # License for the specific language governing permissions and limitations # under the License. You may obtain a # copy of the License at # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ![]() Changes from miniboa: - character-at-a-time input instead of linemode - encoding option on send - strict rejection of linemode - terminal type detection - environment variable support - GA and SGA - utf-8 safe """ # - # miniboa/async.py # miniboa/telnet.py # Copyright 2009 Jim Storch # Licensed under the Apache License, Version 2.0 (the "License") you may # not use this file except in compliance with the License. This server would not be safe for most (linemode) MUD clients. No out-of-band / data mark (DM) / sync supported - No flow control (``^S``, ``^Q``) This is a modified version of miniboa retrieved from svn address which is meant for MUD's. Limitations: - No linemode support, character-at-a-time only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |