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
99df1272
Commit
99df1272
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Created TG mode flag to disable checking of time left online.
parent
9ea41237
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/sbbsdefs.h
+9
-9
9 additions, 9 deletions
src/sbbs3/sbbsdefs.h
src/sbbs3/telgate.cpp
+2
-1
2 additions, 1 deletion
src/sbbs3/telgate.cpp
with
11 additions
and
10 deletions
src/sbbs3/sbbsdefs.h
+
9
−
9
View file @
99df1272
...
@@ -752,15 +752,15 @@ enum { /* readmail and delmailidx which types */
...
@@ -752,15 +752,15 @@ enum { /* readmail and delmailidx which types */
#define EX_WILDCARD 0
#define EX_WILDCARD 0
#endif
#endif
#define OS2_POPEN (1<<0)
/* Leave COM port open */
/* telnet_gate() mode bits */
#define TG_ECHO (1<<0)
/* Turn on telnet echo */
#define TG_
ECHO
(1<<
0)
/*
Turn on telnet echo
*/
#define TG_
CRLF
(1<<
1)
/*
Expand sole CR to CRLF
*/
#define TG_
CRLF
(1<<
1)
/*
Expand sole CR to CRLF
*/
#define TG_
LINEMODE
(1<<
2)
/*
Send entire lines only
*/
#define TG_
LINEMODE
(1<<
2)
/*
Send entire lines only
*/
#define TG_
NODESYNC
(1<<
3)
/*
Call Nodesync, get msgs, etc.
*/
#define TG_
NODESYNC
(1<<
3
)
/*
Call Nodesync, get msgs, etc.
*/
#define TG_
CTRLKEYS
(1<<
4
)
/*
Interpret ^P ^U ^T, etc locally
*/
#define TG_
CTRLKEYS
(1<<
4)
/*
Interpret ^P ^U ^T, etc locally
*/
#define TG_
PASSTHRU
(1<<
5)
/*
Pass-through telnet commands/responses
*/
#define TG_
PASSTHRU
(1<<
5)
/*
Pass-through telnet commands/responses
*/
#define TG_
RLOGIN
(1<<
6)
/*
Use BSD RLogin protocol
*/
#define TG_
RLOGIN
(1<<
6)
/*
Use BSD RLogin protocol
*/
#define TG_
NOCHKTIME
(1<<
7)
/*
Don't check time left while gated
*/
enum
{
/* Values for 'mode' in listfileinfo */
enum
{
/* Values for 'mode' in listfileinfo */
FI_INFO
/* Just list file information */
FI_INFO
/* Just list file information */
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/telgate.cpp
+
2
−
1
View file @
99df1272
...
@@ -139,7 +139,8 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode)
...
@@ -139,7 +139,8 @@ void sbbs_t::telnet_gate(char* destaddr, ulong mode)
telnet_mode
&=~
TELNET_MODE_BIN_RX
;
telnet_mode
&=~
TELNET_MODE_BIN_RX
;
while
(
online
)
{
while
(
online
)
{
gettimeleft
();
if
(
!
(
mode
&
TG_NOCHKTIME
))
gettimeleft
();
rd
=
RingBufRead
(
&
inbuf
,
buf
,
sizeof
(
buf
));
rd
=
RingBufRead
(
&
inbuf
,
buf
,
sizeof
(
buf
));
if
(
rd
)
{
if
(
rd
)
{
if
(
!
(
telnet_mode
&
TELNET_MODE_BIN_RX
))
{
if
(
!
(
telnet_mode
&
TELNET_MODE_BIN_RX
))
{
...
...
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