Method for saving and replaying static data in telnet user operation process
A technology of operation process and static data, applied in the direction of digital transmission system, electrical components, transmission system, etc., can solve the problems that are not conducive to observation, and achieve the effect of convenient viewing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0020] Embodiment 1: as figure 1 as shown,
[0021] A method for preserving and replaying static data of a TELNET user operation process, the method comprising the steps of:
[0022] Define a CStringList object, which is a linked list whose node type is string, used to simulate screen output; define two variables iPosX, iPosY, used to represent the current position of the cursor. iPosX indicates which character position of a certain line should be operated, and iPosY indicates which node in CStringList, that is, the current line. The first character position of the first node in CStringList is iPosX=1, iPosY=1.
[0023] The processing steps are as follows:
[0024] (1) First, the packet capture system records a certain TELNET session process, and the storage form is not limited.
[0025] (2) Filter out the data sent from the server to the client.
[0026] (3) Construct a data structure for simulating screen display, such as using the CStringList class in MFC, where each C...
Embodiment 2
[0044] Embodiment 2: as figure 1 As shown, a method for saving and replaying static data in a TELNET user operation process, the TELNET protocol includes two types of special control characters, one is a command sequence beginning with IAC (hexadecimal FF), and is used to negotiate various control characters. One option; the other is the so-called escape sequence (escape character sequence), which is a character sequence beginning with Esc[, which is used to control the screen format, such as cursor position, font color, and clear characters. The key of the present invention is exactly how to control the escape sequence, so as to prevent old information from being cleared.
[0045] The key algorithm design is as follows:
[0046] ●Do not process the commands beginning with IAC, because it does not affect the display during playback.
[0047] ●Do not process the data sent from the client to the server, only process the data sent from the server to the client, because the serv...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 