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
204b8d8a
Commit
204b8d8a
authored
20 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic improvements when sending/receiving telnet commands/options.
parent
2843e49a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/sexyz.c
+6
-3
6 additions, 3 deletions
src/sbbs3/sexyz.c
with
6 additions
and
3 deletions
src/sbbs3/sexyz.c
+
6
−
3
View file @
204b8d8a
...
...
@@ -156,7 +156,7 @@ void bail(int code)
// YIELD();
if
(
1
/*
code && mode&PAUSE_ABEND
*/
)
{
if
(
code
&&
mode
&
PAUSE_ABEND
)
{
printf
(
"Hit enter to continue..."
);
getchar
();
}
...
...
@@ -209,7 +209,7 @@ void send_telnet_cmd(SOCKET sock, uchar cmd, uchar opt)
buf
[
1
]
=
cmd
;
buf
[
2
]
=
opt
;
fprintf
(
statfp
,
"
\n
Sending telnet command: %s %s"
fprintf
(
statfp
,
"Sending telnet command: %s %s"
,
telnet_cmd_desc
(
buf
[
1
]),
telnet_opt_desc
(
buf
[
2
]));
if
(
send
(
sock
,
buf
,
sizeof
(
buf
),
0
)
==
sizeof
(
buf
))
fprintf
(
statfp
,
"
\n
"
);
...
...
@@ -283,6 +283,9 @@ uint recv_byte(SOCKET sock, unsigned timeout, long mode)
else
fprintf
(
statfp
,
"T<%s> "
,
telnet_opt_desc
(
ch
));
#endif
if
(
telnet_cmdlen
==
3
)
fprintf
(
statfp
,
"Received telnet command: %s %s
\n
"
,
telnet_cmd_desc
(
telnet_cmd
),
telnet_opt_desc
(
ch
));
if
(
telnet_cmdlen
==
3
&&
telnet_cmd
==
TELNET_DO
)
send_telnet_cmd
(
sock
,
TELNET_WILL
,
ch
);
/*
...
...
@@ -880,7 +883,7 @@ void receive_files(char** fname, int fnames, FILE* log)
ulong
total_bytes
=
0
;
FILE
*
fp
;
time_t
t
,
startfile
,
ftime
;
time_t
now
,
last_status
;
time_t
now
,
last_status
=
0
;
if
(
fnames
>
1
)
fprintf
(
statfp
,
"Receiving %u files
\n
"
,
fnames
);
...
...
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