Source code for abacura.mud.options

"""Telnet Options handler module"""
SB = b'\xfa'
SE = b'\xf0'
WILL = b'\xfb'
WONT = b'\xfc'
DO = b'\xfd'
DONT = b'\xfe'
IAC = b'\xff'
GA = b'\xf9'

[docs]class TelnetOption(): """Base class for Telnet Option handling""" def __init__(self, code: int): pass
[docs] def do(self) -> None: """IAC DO handler"""
[docs] def dont(self) -> None: """IAC DONT handler"""
[docs] def will(self) -> None: """IAC WILL handler"""
[docs] def wont(self) -> None: """IAC WONT handler"""
[docs] def sb(self, sb): """IAC SB handler"""