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
4bd8618c
Commit
4bd8618c
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add an option to allow socket-based transfer protocols on *nix. The new
setting currently has no effect on Win32.
parent
590f0528
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/download.cpp
+2
-1
2 additions, 1 deletion
src/sbbs3/download.cpp
src/sbbs3/sbbsdefs.h
+1
-0
1 addition, 0 deletions
src/sbbs3/sbbsdefs.h
src/sbbs3/scfg/scfgxfr1.c
+21
-4
21 additions, 4 deletions
src/sbbs3/scfg/scfgxfr1.c
with
24 additions
and
5 deletions
src/sbbs3/download.cpp
+
2
−
1
View file @
4bd8618c
...
...
@@ -231,7 +231,8 @@ int sbbs_t::protocol(prot_t* prot, enum XFER_TYPE type
if
(
prot
->
misc
&
PROT_NATIVE
)
ex_mode
|=
EX_NATIVE
;
#ifdef __unix__
/* file xfer progs must use stdio on Unix */
ex_mode
|=
(
EX_INR
|
EX_OUTR
|
EX_BIN
);
if
(
!
(
prot
->
misc
&
PROT_SOCKET
))
ex_mode
|=
(
EX_INR
|
EX_OUTR
|
EX_BIN
);
#endif
i
=
external
(
cmdline
,
ex_mode
,
p
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbsdefs.h
+
1
−
0
View file @
4bd8618c
...
...
@@ -200,6 +200,7 @@ typedef struct {
/* Bit values for prot[x].misc */
#define PROT_DSZLOG (1<<0)
/* Supports DSZ Log */
#define PROT_NATIVE (1<<1)
/* Native (32-bit) executable */
#define PROT_SOCKET (1<<2)
/* Use socket I/O, not stdio on *nix */
/* Bit values in netmail_misc */
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/scfg/scfgxfr1.c
+
21
−
4
View file @
4bd8618c
...
...
@@ -813,10 +813,12 @@ This is a list of file transfer protocols that can be used to transfer
files either to or from a remote user. For each protocol, you can
specify the mnemonic (hot-key) to use to specify that protocol, the
command line to use for uploads, downloads, batch uploads, batch
downloads, bi-directional file transfers, and the support of DSZLOG. If
the protocol doesn't support a certain method of transfer, or you don't
wish it to be available for a certain method of transfer, leave the
command line for that method blank.
downloads, bi-directional file transfers, support of DSZLOG, and (for
*nix only) if it uses socket I/O or the more common stdio.
If the protocol doesn't support a certain method of transfer, or you
don't wish it to be available for a certain method of transfer, leave
the command line for that method blank.
*/
i
=
uifc
.
list
(
i
,
0
,
0
,
50
,
&
prot_dflt
,
NULL
,
"File Transfer Protocols"
,
opt
);
if
(
i
==-
1
)
...
...
@@ -892,6 +894,8 @@ command line for that method blank.
,
cfg
.
prot
[
i
]
->
misc
&
PROT_NATIVE
?
"Yes"
:
"No"
);
sprintf
(
opt
[
j
++
],
"%-30.30s%s"
,
"Supports DSZLOG"
,
cfg
.
prot
[
i
]
->
misc
&
PROT_DSZLOG
?
"Yes"
:
"No"
);
sprintf
(
opt
[
j
++
],
"%-30.30s%s"
,
"Socket I/O"
,
cfg
.
prot
[
i
]
->
misc
&
PROT_SOCKET
?
"Yes"
:
"No"
);
opt
[
j
][
0
]
=
0
;
switch
(
uifc
.
list
(
WIN_RHT
|
WIN_BOT
|
WIN_SAV
|
WIN_ACT
,
0
,
0
,
70
,
&
prot_opt
,
0
,
"File Transfer Protocol"
,
opt
))
{
...
...
@@ -967,6 +971,19 @@ command line for that method blank.
uifc
.
changes
=
1
;
}
break
;
case
10
:
l
=
cfg
.
prot
[
i
]
->
misc
&
PROT_SOCKET
?
0
:
1l
;
strcpy
(
opt
[
0
],
"Yes"
);
strcpy
(
opt
[
1
],
"No"
);
opt
[
2
][
0
]
=
0
;
l
=
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
l
,
0
,
"Uses Socket I/O"
,
opt
);
if
((
l
==
0
&&
!
(
cfg
.
prot
[
i
]
->
misc
&
PROT_SOCKET
))
||
(
l
==
1
&&
cfg
.
prot
[
i
]
->
misc
&
PROT_SOCKET
))
{
cfg
.
prot
[
i
]
->
misc
^=
PROT_SOCKET
;
uifc
.
changes
=
1
;
}
break
;
}
}
}
...
...
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