Package mudpy :: Module telnet
[frames] | no frames]

Module telnet

source code

Telnet functions and constants for the mudpy engine.

Functions
 
telnet_proto(*arguments)
Return a concatenated series of Telnet protocol commands.
source code
 
send_command(user, *command)
Sends a Telnet command string to the specified user's socket.
source code
 
is_enabled(user, telopt, party, state=1)
Returns True if the indicated Telnet option is enabled, False if not.
source code
 
enable(user, telopt, party)
Negotiates enabling a Telnet option for the indicated user's socket.
source code
 
disable(user, telopt, party)
Negotiates disabling a Telnet option for the indicated user's socket.
source code
 
negotiate_telnet_options(user)
Reply to and remove telnet negotiation options from partial_input.
source code
Variables
  TELOPT_BINARY = 0
  TELOPT_ECHO = 1
  TELOPT_SGA = 3
  TELOPT_EOR = 25
  TELOPT_NAWS = 31
  TELOPT_LINEMODE = 34
  supported = (0, 1, 3, 25, 31, 34)
  EOR = 239
  SE = 240
  GA = 249
  SB = 250
  WILL = 251
  WONT = 252
  DO = 253
  DONT = 254
  IAC = 255
  NO = 0
  YES = 1
  WANTNO = 2
  WANTYES = 3
  WANTNO_OPPOSITE = 4
  WANTYES_OPPOSITE = 5
  HIM = 0
  US = 1
  __package__ = None