Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b69fd85e
Commit
b69fd85e
authored
4 weeks ago
by
Nigel Reed
Committed by
Rob Swindell
4 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
Add telnet negotiation codes that are mostly used for MUDS,
parent
3940ae18
Branches
Branches containing commit
No related tags found
1 merge request
!533
Add telnet negotiation codes that are mostly used for MUDS,
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/telnet_lib.js
+29
-4
29 additions, 4 deletions
exec/load/telnet_lib.js
with
29 additions
and
4 deletions
exec/load/telnet_lib.js
+
29
−
4
View file @
b69fd85e
...
@@ -16,19 +16,32 @@ const IP =244 /* 0xf4 - Interrupt process */
...
@@ -16,19 +16,32 @@ const IP =244 /* 0xf4 - Interrupt process */
const
BRK
=
243
/* 0xf3 - Break */
const
BRK
=
243
/* 0xf3 - Break */
const
SYNC
=
242
/* 0xf2 - Data mark */
const
SYNC
=
242
/* 0xf2 - Data mark */
const
NOP
=
241
/* 0xf1 - No operation */
const
NOP
=
241
/* 0xf1 - No operation */
const
SE
=
240
/* 0xf0 - End of subnegotiation parameters. */
const
SE
=
240
/* 0xf0 - End of subnegotiation parameters. */
const
NEW_ENVIRON
=
39
/* 0x27 - NEW-ENVIRON - Exchange environment vars etc. */
/* js doesn't like - in variables so must use underscore */
/* js doesn't like - in variables so must use underscore */
const
ECHO
=
1
/* 0x01 - echo opcode */
const
SGA
=
3
/* 0x03 - suppress go ahead */
const
TERMINAL_TYPE
=
24
/* 0x18 - Request terminal type */
const
EOR
=
25
/* 0x19 - end of record */
const
NAWS
=
31
/* 0x1f - NAWS - Negotiate About Window Size */
const
NAWS
=
31
/* 0x1f - NAWS - Negotiate About Window Size */
const
NEW_ENVIRON
=
39
/* 0x27 - NEW-ENVIRON - Exchange environment vars etc. */
const
LINEMODE
=
42
/* 0x2a - set linemode */
const
SLE
=
45
/* 0x2d - suppress local echo */
const
MSDP
=
69
/* 0x45 - MSDP - MUD Server Data Protocl */
const
MSDP
=
69
/* 0x45 - MSDP - MUD Server Data Protocl */
const
MMSP
=
70
/* 0x46 - MMSP - MUD Master Server Protocol */
const
MMSP
=
70
/* 0x46 - MMSP - MUD Master Server Protocol */
const
COMPRESS
=
85
/* 0x55 - Text compression protocol 1 */
const
MCCP
=
85
/* 0x55 - Text compression protocol 1 */
const
COMPRESS2
=
86
/* 0x56 - Text compression protocol 2 */
const
COMPRESS
=
85
/* synonym for MCCP */
const
MCCP2
=
86
/* 0x56 - Text compression protocol 2 */
const
COMPRESS2
=
86
/* synonym for MCCP2 */
const
MCCP3
=
87
/* 0x57 - Text compression protocol 2 */
const
COMPRESS3
=
87
/* synonym for MCCP3 */
const
MSP
=
90
/* 0x5a - MSP - MUD Sound Protocol */
const
MSP
=
90
/* 0x5a - MSP - MUD Sound Protocol */
const
MXP
=
91
/* 0x5b - MXP - MUD eXtension Protocol */
const
MXP
=
91
/* 0x5b - MXP - MUD eXtension Protocol */
const
AARD
=
102
/* 0x66 - AARD - Proprietary Aardwolf MUD Protocol */
const
AARD
=
102
/* 0x66 - AARD - Proprietary Aardwolf MUD Protocol */
const
ATCP
=
200
/* 0xc8 - Achaea Telnet Client Protocol */
const
GCMP
=
201
/* 0xc9 - GCMP - Galois/Counter Mode for Packet */
const
GCMP
=
201
/* 0xc9 - GCMP - Galois/Counter Mode for Packet */
function
cmdstr
(
cmd
)
function
cmdstr
(
cmd
)
...
@@ -40,6 +53,7 @@ function cmdstr(cmd)
...
@@ -40,6 +53,7 @@ function cmdstr(cmd)
case
WILL
:
return
"
WILL
"
;
case
WILL
:
return
"
WILL
"
;
case
WONT
:
return
"
WONT
"
;
case
WONT
:
return
"
WONT
"
;
case
SB
:
return
"
SB
"
;
case
SB
:
return
"
SB
"
;
case
SE
:
return
"
SE
"
;
case
GA
:
return
"
GA
"
;
case
GA
:
return
"
GA
"
;
case
EL
:
return
"
EL
"
;
case
EL
:
return
"
EL
"
;
case
EC
:
return
"
EC
"
;
case
EC
:
return
"
EC
"
;
...
@@ -54,11 +68,22 @@ function cmdstr(cmd)
...
@@ -54,11 +68,22 @@ function cmdstr(cmd)
case
MMSP
:
return
"
MMSP
"
;
case
MMSP
:
return
"
MMSP
"
;
case
COMPRESS
:
return
"
COMPRESS
"
;
case
COMPRESS
:
return
"
COMPRESS
"
;
case
COMPRESS2
:
return
"
COMPRESS2
"
;
case
COMPRESS2
:
return
"
COMPRESS2
"
;
case
COMPRESS3
:
return
"
COMPRESS3
"
;
case
MSP
:
return
"
MSP
"
;
case
MSP
:
return
"
MSP
"
;
case
MXP
:
return
"
MXP
"
;
case
MXP
:
return
"
MXP
"
;
case
AARD
:
return
"
AARD
"
;
case
AARD
:
return
"
AARD
"
;
case
GCMP
:
return
"
GCMP
"
;
case
GCMP
:
return
"
GCMP
"
;
case
NEW_ENVIRON
:
return
"
NEW-ENVIRON
"
;
case
NEW_ENVIRON
:
return
"
NEW-ENVIRON
"
;
case
LINEMODE
:
return
"
LINEMODE
"
;
case
TERMINAL_TYPE
:
return
"
TERMINAL-TYPE
"
;
case
ECHO
:
return
"
ECHO
"
;
case
SGA
:
return
"
SGA
"
;
case
ATCP
:
return
"
ATCP
"
;
case
MCCP
:
return
"
MCCP
"
;
case
MCCP2
:
return
"
MCCP2
"
;
case
MCCP3
:
return
"
MCCP3
"
;
case
EOR
:
return
"
EOR
"
;
case
SLE
:
return
"
SLE
"
;
}
}
return
cmd
;
return
cmd
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment