DevCont - Documentation
The following is the documentation of the program DevCont - Developer's Connector.
Introduction
DevCont is a program with many possibilities. It is capable of both TCP/IP and UDP/IP. Furthermore it has three different modes to send and receive data, which are described more exactly in the section "The different modes". Due to this versatility DevCont addresses itself to advanced users or developers.
DevCont has two main fields of application:
- DevCont enables developers to test the behavior of their server applications in a very simple way without the necessity to specially write a client for this task.
- It also gives developers the possibility of simply testing protocols before they develop applications for them. Nothing is as annoying, as if one wrote several-day-long at an application to only find out that it doesn't work properly because one misunterstood a RFC.
In addition also "normal" users can use DevCont to improve their knowledge of protocols used on the internet or simply to play around.
The Interface
The graphical user interface should be easy to understand but let's explain it nevertheless. At the left side above the output field is an input field for the IP or the name of the target computer. Besides is a input field for the port, to which to connect, followed by the button "connect", which establishes a connection with the target, the button "disconnect" closes this connection and finally there's an empty input field for general inputs. If one writes something in this field, one only needs to press ENTER in order to send the input. Below these is a field for outputs and below that is the status bar.
The Settings
Settings can be set in two different ways:
- Click on the input field, enter the option you want to change and press ENTER. That's it!
DevCont knows the following options (input without the quotes in each case but with colon!):- ":tcp" to set TCP as current protocol
- ":udp" to set UDP as current protocol
- ":bin" or ":binary" to switch to binary mode
- ":adv" or ":advanced" to switch to advanced mode
- ":ascii" to switch to ASCII mode
- ":scheme x" to change color scheme; x is the number of the scheme (1-9)
Table of color schemes:
Number: Textcolor: Background: 1 White Blue 2 Green Black 3 White Black 4 Yellow Red 5 Black Grey 6 Black White 7 Yellow Black 8 Black Yellow 9 Yellow Blue - ":winsock" to obtain winsock information
- ":stats" to view connection statistics
- Settings may also be changed by clicking the status bar. The current protocol as well as the current mode used can be changed by clicking the appropriate parts of the status bar, that are the parts showing the coresponding information. Click the "Sent/Received Bytes"-area and a connection statistics will be displayed.
Hit F1 or use command ":help" to dislpay (quick) help within DevCont.
IMPORTANT: Options may only be changed as long as there's currently no connection established!
The different Modes
ASCII mode
This is the standard mode. It is perfectly suitable for protocols like SMTP or POP3. Sends the contents of the input field as plain ASCII text but CR LF characters are attached to each individual transfer. That's in fact the format most Internet protocols use.
Binary mode
In binary mode the hexadecimal codes of each individual byte is entered in the input field. It is only transmitted what is entered. Likewise only the hexcodes of the received bytes are displayed. This mode is meant for connections/protocols, which do not transmit plain and printable ASCII characters (e.g. SOCKS).
Advanced mode
This is actually the ASCII mode with items of the binary mode. Printable ASCII characters are transmitted but nothing is automatically attached. The special thing about this mode is the support of escape sequences known from the programming languages C/C++. You can, with the aid of these escape sequences, mix the printable ASCII charactes with non printable ones (Note: In order to make a backslash, you must use the \\ escape sequence).
The advanced mode supports the following escape sequences:
Sequence: | Decimal value: | ASCII character: |
---|---|---|
\a | 7 | BEL |
\b | 8 | BS |
\t | 9 | HT |
\n | 10 | LF |
\v | 11 | VT |
\f | 12 | FF |
\r | 13 | CR |
\\ | 92 | Backslash |
\xzz | - | Character with hexcode zz |
Have much fun with DevCont!