Giter Site home page Giter Site logo

comprosoftceo / telnetserver Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 50 KB

Telnet Server written in Java

License: GNU General Public License v3.0

Java 100.00%
telnet telnet-server telnet-protocol telnet-commands server server-side terminal-based

telnetserver's Introduction

Telnet Server

Telnet Server written in Java


Compiling and Running

The Telnet server is designed to run with the Eclipse IDE. The main method is in the file ServerControl.java, which uses a JFrame interface to display the server log.

When running the server, you will probably need to run Java as Administrator (Windows) or with Sudo (Linux). Compile the source into a runnable .jar file, then run the file using:

java -jar Telnet.jar (for Windows Command Prompt running as Administrator)

or

sudo java -jar Telnet.jar (for the Linux terminal)


Server Properties

Various properties of the server (such as the port number or maximum amount of threads) can be changed in the server.properties file. Additional properties can be added by modifying ServerProperties.java and adding more entries to the defined enum.


Adding Commands

The list of commands is stored in AllCommands.java, and adding a command is as simple as defining another entry in the enum. When adding a command, be sure to include a short description.

Commands are stored in the enum using the "Class" class (see the Javadocs on Reflection). For a class to be a valid:

  1. It must extend the abstract class "Command"
  2. It must have one constructor:
public constructor(IOHandler io);

While some special commands may have different constructors, this is the format needed to add a command to the AllCommands enum.


Credits

The Telnet Server code is based on Ayache Khettar's telnet-server. However, extension modifications were made to the code to adapt it for other uses.

The Crafting Engine code comes from another project, CraftingEngine, which is based on the game Little Alchemy by Jakob Koziol. As of yet, the Java version doesn't implement saving and loading.

telnetserver's People

Contributors

comprosoftceo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.