|
Holumbus.Console.ServerConsole | Portability | portable | Stability | experimental | Maintainer | Sebastian Reese (str@holumbus.org) |
|
|
|
|
|
Description |
Version : 0.1
This module provides a tiny and nice implementation of a little command
shell with communcation over a socket.
It is basically a copy of Holumbus.Console.Console with some changes to fit network communication.
|
|
Synopsis |
|
|
|
|
Console datatype
|
|
|
Map which contains all commands that the user can execute
|
|
Operations
|
|
|
gets the next option from the command line as string
|
|
|
Simple parser for the commandline...
|
|
|
Creates a new console datatype
|
|
|
:: String | command string (the word the user has to enter when he wants to execute the command)
| -> ConsoleFunction a | the function which should be executed
| -> String | the function description
| -> ConsoleData a | the old console data
| -> ConsoleData a | | Adds a new console command to the function, an existing command with the
same name will be overwritten
|
|
|
|
:: ConsoleData a | the console data
| -> a | the console config
| -> Int | console port
| -> String | a consoles prompt
| -> IO () | | Starts the server listening
|
|
|
|
This defaultimplementaion can be used if a simple INput -> Process command -> output patern is used
|
|
|
default string to a converter. Converts the input lines into desired format. Here String
|
|
Produced by Haddock version 2.6.1 |