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
6d28a030
Commit
6d28a030
authored
18 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix some issues exposed by compiling on Win32.Fix some issues exposed by compiling on Win32.
parent
dd6fe01a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/syncterm/conn_telnet.c
+9
-4
9 additions, 4 deletions
src/syncterm/conn_telnet.c
src/syncterm/rlogin.c
+9
-4
9 additions, 4 deletions
src/syncterm/rlogin.c
with
18 additions
and
8 deletions
src/syncterm/conn_telnet.c
+
9
−
4
View file @
6d28a030
...
...
@@ -15,11 +15,14 @@
SOCKET
telnet_sock
=
INVALID_SOCKET
;
#ifdef __BORLANDC__
#pragma argsused
#endif
void
telnet_input_thread
(
void
*
args
)
{
fd_set
rds
;
int
rd
;
size_
t
buffered
;
in
t
buffered
;
size_t
buffer
;
char
rbuf
[
BUFFER_SIZE
];
char
*
buf
;
...
...
@@ -35,7 +38,7 @@ void telnet_input_thread(void *args)
rd
=
0
;
}
if
(
rd
==
1
)
{
rd
=
recv
(
telnet_sock
,
conn_api
.
rd_buf
,
conn_api
.
rd_buf_size
,
MSG_DONTWAIT
);
rd
=
recv
(
telnet_sock
,
conn_api
.
rd_buf
,
conn_api
.
rd_buf_size
,
0
);
if
(
rd
<=
0
)
break
;
}
...
...
@@ -52,13 +55,15 @@ void telnet_input_thread(void *args)
conn_api
.
input_thread_running
=
0
;
}
#ifdef __BORLANDC__
#pragma argsused
#endif
void
telnet_output_thread
(
void
*
args
)
{
fd_set
wds
;
in
t
wr
;
size_
t
wr
;
int
ret
;
size_t
sent
;
size_t
send
;
char
ebuf
[
BUFFER_SIZE
*
2
];
char
*
buf
;
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/rlogin.c
+
9
−
4
View file @
6d28a030
...
...
@@ -10,11 +10,14 @@
static
SOCKET
sock
=
INVALID_SOCKET
;
#ifdef __BORLANDC__
#pragma argsused
#endif
void
rlogin_input_thread
(
void
*
args
)
{
fd_set
rds
;
int
rd
;
size_
t
buffered
;
in
t
buffered
;
size_t
buffer
;
conn_api
.
input_thread_running
=
1
;
...
...
@@ -28,7 +31,7 @@ void rlogin_input_thread(void *args)
rd
=
0
;
}
if
(
rd
==
1
)
{
rd
=
recv
(
sock
,
conn_api
.
rd_buf
,
conn_api
.
rd_buf_size
,
MSG_DONTWAIT
);
rd
=
recv
(
sock
,
conn_api
.
rd_buf
,
conn_api
.
rd_buf_size
,
0
);
if
(
rd
<=
0
)
break
;
}
...
...
@@ -43,13 +46,15 @@ void rlogin_input_thread(void *args)
conn_api
.
input_thread_running
=
0
;
}
#ifdef __BORLANDC__
#pragma argsused
#endif
void
rlogin_output_thread
(
void
*
args
)
{
fd_set
wds
;
int
wr
;
int
ret
;
size_t
sent
;
size_t
send
;
int
sent
;
conn_api
.
output_thread_running
=
1
;
while
(
sock
!=
INVALID_SOCKET
&&
!
conn_api
.
terminate
)
{
...
...
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