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
4088906b
Commit
4088906b
authored
Apr 01, 2009
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebuild for x11vnc dev 0.9.8
parent
ea30be6c
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
50 deletions
+94
-50
README
x11vnc/README
+57
-43
connections.c
x11vnc/connections.c
+26
-5
connections.h
x11vnc/connections.h
+1
-0
screen.c
x11vnc/screen.c
+6
-0
x11vnc.1
x11vnc/x11vnc.1
+1
-1
x11vnc.h
x11vnc/x11vnc.h
+1
-0
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+2
-1
No files found.
x11vnc/README
View file @
4088906b
This diff is collapsed.
Click to expand it.
x11vnc/connections.c
View file @
4088906b
...
...
@@ -91,6 +91,7 @@ int accept_client(rfbClientPtr client);
int
run_user_command
(
char
*
cmd
,
rfbClientPtr
client
,
char
*
mode
,
char
*
input
,
int
len
,
FILE
*
output
);
int
check_access
(
char
*
addr
);
void
client_set_net
(
rfbClientPtr
client
);
static
rfbClientPtr
*
client_match
(
char
*
str
);
static
void
free_client_data
(
rfbClientPtr
client
);
...
...
@@ -138,6 +139,7 @@ char *list_clients(void) {
iter
=
rfbGetClientIterator
(
screen
);
while
(
(
cl
=
rfbClientIteratorNext
(
iter
))
)
{
client_set_net
(
cl
);
count
++
;
}
rfbReleaseClientIterator
(
iter
);
...
...
@@ -156,6 +158,7 @@ char *list_clients(void) {
iter
=
rfbGetClientIterator
(
screen
);
while
(
(
cl
=
rfbClientIteratorNext
(
iter
))
)
{
ClientData
*
cd
=
(
ClientData
*
)
cl
->
clientData
;
if
(
!
cd
)
{
continue
;
}
...
...
@@ -411,6 +414,7 @@ int run_user_command(char *cmd, rfbClientPtr client, char *mode, char *input,
char
str
[
100
];
int
rc
,
ok
;
ClientData
*
cd
=
NULL
;
client_set_net
(
client
);
if
(
client
!=
NULL
)
{
cd
=
(
ClientData
*
)
client
->
clientData
;
addr
=
client
->
host
;
...
...
@@ -2897,6 +2901,24 @@ void client_gone_chat_helper(rfbClientPtr client) {
chat_window_client
=
NULL
;
}
void
client_set_net
(
rfbClientPtr
client
)
{
ClientData
*
cd
;
if
(
client
==
NULL
)
{
return
;
}
cd
=
(
ClientData
*
)
client
->
clientData
;
if
(
cd
==
NULL
)
{
return
;
}
if
(
cd
->
client_port
<
0
)
{
double
dt
=
dnow
();
cd
->
client_port
=
get_remote_port
(
client
->
sock
);
cd
->
server_port
=
get_local_port
(
client
->
sock
);
cd
->
server_ip
=
get_local_host
(
client
->
sock
);
cd
->
hostname
=
ip2host
(
client
->
host
);
rfbLog
(
"client_set_net: %s %.4f
\n
"
,
client
->
host
,
dnow
()
-
dt
);
}
}
/*
* libvncserver callback for when a new client connects
*/
...
...
@@ -2950,10 +2972,8 @@ enum rfbNewClientAction new_client(rfbClientPtr client) {
client
->
clientData
=
(
void
*
)
calloc
(
sizeof
(
ClientData
),
1
);
cd
=
(
ClientData
*
)
client
->
clientData
;
cd
->
client_port
=
get_remote_port
(
client
->
sock
);
cd
->
server_port
=
get_local_port
(
client
->
sock
);
cd
->
server_ip
=
get_local_host
(
client
->
sock
);
cd
->
hostname
=
ip2host
(
client
->
host
);
/* see client_set_net() we delay the DNS lookups during handshake */
cd
->
client_port
=
-
1
;
cd
->
username
=
strdup
(
""
);
cd
->
unixname
=
strdup
(
""
);
...
...
@@ -3026,7 +3046,7 @@ enum rfbNewClientAction new_client(rfbClientPtr client) {
install_padded_fb
(
pad_geometry
);
}
cd
->
timer
=
dnow
();
cd
->
timer
=
last_new_client
=
dnow
();
cd
->
send_cmp_rate
=
0
.
0
;
cd
->
send_raw_rate
=
0
.
0
;
cd
->
latency
=
0
.
0
;
...
...
@@ -3347,6 +3367,7 @@ void check_new_clients(void) {
ClientData
*
cd
=
(
ClientData
*
)
cl
->
clientData
;
char
*
s
;
client_set_net
(
cl
);
if
(
!
cd
)
{
continue
;
}
...
...
x11vnc/connections.h
View file @
4088906b
...
...
@@ -70,5 +70,6 @@ extern int accept_client(rfbClientPtr client);
extern
int
run_user_command
(
char
*
cmd
,
rfbClientPtr
client
,
char
*
mode
,
char
*
input
,
int
len
,
FILE
*
output
);
extern
int
check_access
(
char
*
addr
);
extern
void
client_set_net
(
rfbClientPtr
client
);
#endif
/* _X11VNC_CONNECTIONS_H */
x11vnc/screen.c
View file @
4088906b
...
...
@@ -3858,6 +3858,9 @@ void watch_loop(void) {
}
else
{
rfbPE
(
-
1
);
}
if
(
x11vnc_current
<
last_new_client
+
0
.
5
)
{
urgent_update
=
1
;
}
unixpw_in_rfbPE
=
0
;
...
...
@@ -3992,6 +3995,9 @@ void watch_loop(void) {
#endif
continue
;
}
if
(
x11vnc_current
<
last_new_client
+
0
.
5
&&
!
all_clients_initialized
())
{
continue
;
}
if
(
button_mask
&&
(
!
show_dragging
||
pointer_mode
==
0
))
{
/*
...
...
x11vnc/x11vnc.1
View file @
4088906b
...
...
@@ -2,7 +2,7 @@
.TH X11VNC "1" "March 2009" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
version: 0.9.
7, lastmod: 2009-03-15
version: 0.9.
8, lastmod: 2009-03-30
.SH SYNOPSIS
.B x11vnc
[OPTION]...
...
...
x11vnc/x11vnc.h
View file @
4088906b
...
...
@@ -550,6 +550,7 @@ extern int hack_val;
extern
rfbClientPtr
last_pointer_client
;
extern
rfbClientPtr
latest_client
;
extern
double
last_client_gone
;
extern
double
last_new_client
;
extern
int
waited_for_client
;
extern
int
findcreatedisplay
;
...
...
x11vnc/x11vnc_defs.c
View file @
4088906b
...
...
@@ -47,7 +47,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.9.
7 lastmod: 2009-03-15
"
;
char
lastmod
[]
=
"0.9.
8 lastmod: 2009-03-30
"
;
/* X display info */
...
...
@@ -187,6 +187,7 @@ int hack_val = 0;
rfbClientPtr
last_pointer_client
=
NULL
;
rfbClientPtr
latest_client
=
NULL
;
double
last_client_gone
=
0
.
0
;
double
last_new_client
=
0
.
0
;
int
waited_for_client
=
0
;
int
findcreatedisplay
=
0
;
...
...
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