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
c8b1dce9
Commit
c8b1dce9
authored
21 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
General code cleanup, more modularization, numeric constant replacement.
parent
da8b42a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/xmodem.c
+6
-5
6 additions, 5 deletions
src/sbbs3/xmodem.c
src/sbbs3/zmodem.c
+153
-211
153 additions, 211 deletions
src/sbbs3/zmodem.c
src/sbbs3/zmodem.h
+6
-3
6 additions, 3 deletions
src/sbbs3/zmodem.h
with
165 additions
and
219 deletions
src/sbbs3/xmodem.c
+
6
−
5
View file @
c8b1dce9
...
...
@@ -45,7 +45,7 @@
void
xmodem_put_nak
(
xmodem_t
*
xm
)
{
while
(
getcom
(
1
)
!=
NOINP
&&
(
xm
->
mode
&
NO_LOCAL
||
kbhit
()
!=
LOC_ABORT
)
)
while
(
getcom
(
1
)
!=
NOINP
)
;
/* wait for any trailing data */
putcom
(
NAK
);
}
...
...
@@ -263,6 +263,11 @@ int xmodem_get_ack(xmodem_t* xm, int tries)
return
(
0
);
}
const
char
*
xmodem_source
(
void
)
{
return
(
__FILE__
);
}
char
*
xmodem_ver
(
char
*
buf
)
{
sscanf
(
"$Revision$"
,
"%*s %s"
,
buf
);
...
...
@@ -270,7 +275,3 @@ char* xmodem_ver(char *buf)
return
(
buf
);
}
const
char
*
xmodem_source
(
void
)
{
return
(
__FILE__
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/sbbs3/zmodem.c
+
153
−
211
View file @
c8b1dce9
This diff is collapsed.
Click to expand it.
src/sbbs3/zmodem.h
+
6
−
3
View file @
c8b1dce9
...
...
@@ -23,6 +23,7 @@
#define LF 0x0a
#define CR 0x0d
#endif
#define DLE 0x10
#define XON 0x11
#define XOFF 0x13
#define NAK 0x15
...
...
@@ -190,8 +191,6 @@
typedef
struct
{
SOCKET
sock
;
/* socket descriptor */
unsigned
char
rxd_header
[
ZMAXHLEN
];
/* last received header */
int
rxd_header_len
;
/* last received header size */
...
...
@@ -240,7 +239,11 @@ typedef struct {
int
n_cans
;
long
mode
;
/* Stuff added by RRS */
SOCKET
sock
;
/* socket descriptor */
long
mode
;
FILE
*
statfp
;
FILE
*
errfp
;
}
zmodem_t
;
...
...
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