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
784e2265
Commit
784e2265
authored
1 year ago
by
Nigel Reed
Committed by
Rob Swindell
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Added MSP, MXP, MSDP and a few other protocols
parent
906ee60f
No related branches found
No related tags found
1 merge request
!412
Added MSP, MXP, MSDP and a few other protocols
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/telnet_lib.js
+38
-19
38 additions, 19 deletions
exec/load/telnet_lib.js
with
38 additions
and
19 deletions
exec/load/telnet_lib.js
+
38
−
19
View file @
784e2265
...
...
@@ -2,11 +2,11 @@
const
IAC
=
255
/* 0xff - Interpret as command */
const
DONT
=
254
/* 0xfe - Don't do option */
const
DO
=
253
/* 0xfd - Do option */
const
DO
=
253
/* 0xfd - Do option */
const
WONT
=
252
/* 0xfc - Won't do option */
const
WILL
=
251
/* 0xfb - Will do option */
const
SB
=
250
/* 0xfa - sub-negotiation */
const
SB
=
250
/* 0xfa - sub-negotiation */
const
GA
=
249
/* 0xf9 - Go ahead */
const
EL
=
248
/* 0xf8 - Erase line */
const
EC
=
247
/* 0xf7 - Erase char */
...
...
@@ -17,26 +17,45 @@ const BRK =243 /* 0xf3 - Break */
const
SYNC
=
242
/* 0xf2 - Data mark */
const
NOP
=
241
/* 0xf1 - No operation */
const
SE
=
240
/* 0xf0 - End of subnegotiation parameters. */
const
SE
=
240
/* 0xf0 - End of subnegotiation parameters. */
const
NAWS
=
31
/* 0x1f - NAWS - Negotiate About Window Size */
const
MSDP
=
69
/* 0x45 - MSDP - MUD Server Data Protocl */
const
MMSP
=
70
/* 0x46 - MMSP - MUD Master Server Protocol */
const
COMPRESS
=
85
/* 0x55 - Text compression protocol 1 */
const
COMPRESS2
=
86
/* 0x56 - Text compression protocol 2 */
const
MSP
=
90
/* 0x5a - MSP - MUD Sound Protocol */
const
MXP
=
91
/* 0x5b - MXP - MUD eXtension Protocol */
const
AARD
=
102
/* 0x66 - AARD - Proprietary Aardwolf MUD Protocol */
const
GCMP
=
201
/* 0xc9 - GCMP - Galois/Counter Mode for Packet */
function
cmdstr
(
cmd
)
{
switch
(
cmd
)
{
case
IAC
:
return
"
IAC
"
;
case
DO
:
return
"
DO
"
;
case
DONT
:
return
"
DONT
"
;
case
WILL
:
return
"
WILL
"
;
case
WONT
:
return
"
WONT
"
;
case
SB
:
return
"
SB
"
;
case
GA
:
return
"
GA
"
;
case
EL
:
return
"
EL
"
;
case
EC
:
return
"
EC
"
;
case
AYT
:
return
"
AYT
"
;
case
AO
:
return
"
AO
"
;
case
IP
:
return
"
IP
"
;
case
BRK
:
return
"
BRK
"
;
case
SYNC
:
return
"
SYNC
"
;
case
NOP
:
return
"
NOP
"
;
case
IAC
:
return
"
IAC
"
;
case
DO
:
return
"
DO
"
;
case
DONT
:
return
"
DONT
"
;
case
WILL
:
return
"
WILL
"
;
case
WONT
:
return
"
WONT
"
;
case
SB
:
return
"
SB
"
;
case
GA
:
return
"
GA
"
;
case
EL
:
return
"
EL
"
;
case
EC
:
return
"
EC
"
;
case
AYT
:
return
"
AYT
"
;
case
AO
:
return
"
AO
"
;
case
IP
:
return
"
IP
"
;
case
BRK
:
return
"
BRK
"
;
case
SYNC
:
return
"
SYNC
"
;
case
NOP
:
return
"
NOP
"
;
case
NAWS
:
return
"
NAWS
"
;
case
MSDP
:
return
"
MSDP
"
;
case
MMSP
:
return
"
MMSP
"
;
case
COMPRESS
:
return
"
COMPRESS
"
;
case
COMPRESS2
:
return
"
COMPRESS2
"
;
case
MSP
:
return
"
MSP
"
;
case
MXP
:
return
"
MXP
"
;
case
AARD
:
return
"
AARD
"
;
case
GCMP
:
return
"
GCMP
"
;
}
return
cmd
;
}
...
...
@@ -56,4 +75,4 @@ function ack(cmd)
}
/* Leave as last line for convenient load() usage: */
this
;
\ No newline at end of file
this
;
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