Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
3d00472a
Commit
3d00472a
authored
Sep 18, 2006
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: improve ultravnc filexfer rate by calling rfbCheckFD more often
parent
462c30db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
7 deletions
+52
-7
rfbserver.c
libvncserver/rfbserver.c
+2
-1
README
x11vnc/README
+8
-6
x11vnc.c
x11vnc/x11vnc.c
+42
-0
No files found.
libvncserver/rfbserver.c
View file @
3d00472a
...
...
@@ -1292,8 +1292,9 @@ rfbBool rfbSendFileTransferChunk(rfbClientPtr cl)
tv
.
tv_usec
=
0
;
n
=
select
(
cl
->
sock
+
1
,
NULL
,
&
wfds
,
NULL
,
&
tv
);
if
(
n
<
1
)
if
(
n
<
0
)
{
rfbLog
(
"rfbSendFileTransferChunk() select failed: %s
\n
"
,
strerror
(
errno
));
}
/* We have space on the transmit queue */
if
(
n
>
0
)
{
...
...
x11vnc/README
View file @
3d00472a
x11vnc
README
file
Date
:
Sun
Sep
17
1
3
:
31
:
31
EDT
2006
x11vnc
README
file
Date
:
Sun
Sep
17
1
9
:
51
:
07
EDT
2006
The
following
information
is
taken
from
these
URLs
:
...
...
@@ -44,11 +44,12 @@ x11vnc: a VNC server for real X displays
or
questions
.
An
x11vnc
side
-
project
provides
an
[
17
]
Enhanced
TightVNC
Viewer
package
with
automatic
SSL
and
/
or
SSH
tunnelling
support
,
NewFBSize
support
on
Unix
,
and
cursor
alphablending
.
Please
help
test
out
some
recently
added
features
:
automatic
service
tunnelling
via
SSH
for
CUPS
and
SMB
Printing
,
ESD
/
ARTSD
Audio
,
and
SMB
(
Windows
/
Samba
)
filesystem
mounting
;
and
Port
Knocking
.
package
with
automatic
SSL
and
/
or
SSH
tunnelling
support
,
SSL
Certificate
creation
,
NewFBSize
support
on
Unix
,
and
cursor
alphablending
.
Please
help
test
out
some
recently
added
features
:
automatic
service
tunnelling
via
SSH
for
CUPS
and
SMB
Printing
,
ESD
/
ARTSD
Audio
,
and
SMB
(
Windows
/
Samba
)
filesystem
mounting
;
and
Port
Knocking
.
Background
:
...
...
@@ -7708,6 +7709,7 @@ Enhanced TightVNC Viewer
only)
* xgrabserver support for fullscreen mode, for old window managers
(-grab option, Unix only).
* Create or Import SSL Certificates and Private Keys.
* Automatic Service tunnelling via SSH for CUPS and SMB Printing,
ESD/ARTSD Audio, and SMB (Windows/Samba) filesystem mounting.
* Port Knocking for "
closed
port
" SSH/SSL connections. In addition
...
...
x11vnc/x11vnc.c
View file @
3d00472a
...
...
@@ -394,6 +394,47 @@ if (0 && dt > 0.0) fprintf(stderr, "dt: %.5f %.4f\n", dt, dnow() - x11vnc_start)
return
msec
;
}
void
check_filexfer
(
void
)
{
static
time_t
last_check
=
0
;
rfbClientIteratorPtr
iter
;
rfbClientPtr
cl
;
int
transferring
=
0
;
if
(
time
(
NULL
)
<=
last_check
)
{
return
;
}
#if 0
if (getenv("NOFT")) {
return;
}
#endif
iter
=
rfbGetClientIterator
(
screen
);
while
(
(
cl
=
rfbClientIteratorNext
(
iter
))
)
{
if
(
cl
->
fileTransfer
.
receiving
)
{
transferring
=
1
;
break
;
}
if
(
cl
->
fileTransfer
.
sending
)
{
transferring
=
1
;
break
;
}
}
rfbReleaseClientIterator
(
iter
);
if
(
transferring
)
{
double
start
=
dnow
();
while
(
dnow
()
<
start
+
0
.
5
)
{
rfbCFD
(
5000
);
rfbCFD
(
1000
);
rfbCFD
(
0
);
}
}
else
{
last_check
=
time
(
NULL
);
}
}
/*
* main x11vnc loop: polls, checks for events, iterate libvncserver, etc.
*/
...
...
@@ -515,6 +556,7 @@ static void watch_loop(void) {
check_xevents
(
0
);
check_autorepeat
();
check_pm
();
check_filexfer
();
check_keycode_state
();
check_connect_inputs
();
check_gui_inputs
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment