Skip to content
/ mth Public
forked from scandum/mth

MTH (Mud Telopt Handler) server side TELNET implementation, forked to support SPM

Notifications You must be signed in to change notification settings

ncmud/mth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C CI Swift

MTH (Mud Telopt Handler)

Telnet handler which supports the following TELNET options.

CHARSET      - Reports the character sets supported by the client.
ECHO         - Allows toggling local echo.
EOR          - Allows prompt marking.
GMCP         - Allows MSDP event handling with JSON syntax.
MCCP2        - Allows server side compression.
MCCP3        - Allows client side compression.
MSDP         - Allows structured data exchange and event handling.
MSSP         - Reports various features supported by the server.
MTTS         - Reports various features supported by the client.
NAWS         - Reports the client's window size.
NEW_ENVIRON  - Reports various system variables.
TTYPE        - Reports the client's terminal type.

MTH has a permissive license, just leave the copyright notice in the original sources, otherwise you can do as you please with it.

MTH will run stand alone and by default opens a connection on port 4321 to which a telnet / mud client can connect. This is primarily there so you can test the code and provide you with an example implementation.

Client side MCCP3 support is currently only supported by TinTin++.

Building standalone

$ cd Sources/mth

and build the binary:

$ make .

Incorporating via SPM

Add the following to your Package.swift:

.package(url: "https://github.com/ncmud/mth.git", branch: "trunk")

Incorporate "mth" into your targets dependencies:

.target(
    name: "MyTarget",
    dependencies: [
        "mth",
    ]
),

About

MTH (Mud Telopt Handler) server side TELNET implementation, forked to support SPM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.0%
  • Other 1.0%