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
b34beb1b
Commit
b34beb1b
authored
Aug 31, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
socket via proxy gets options set, compiler warning fixes
parent
0024d747
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
cvs_update_anonymously
cvs_update_anonymously
+8
-1
httpd.c
httpd.c
+2
-2
rfbserver.c
rfbserver.c
+19
-0
vncauth.c
vncauth.c
+1
-1
No files found.
cvs_update_anonymously
View file @
b34beb1b
cvs -z3 -d :pserver:anonymous@cvs.libvncserver.sf.net:/cvsroot/libvncserver update
if [ a"$1" = adiff ]; then
cmd=diff
else
cmd=update
fi
cvs -z3 -d :pserver:anonymous@cvs.libvncserver.sf.net:/cvsroot/libvncserver $cmd
httpd.c
View file @
b34beb1b
...
...
@@ -270,7 +270,7 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
// proxy connection
rfbLog
(
"httpd: client asked for CONNECT
\n
"
);
WriteExact
(
&
cl
,
PROXY_OK_STR
,
strlen
(
PROXY_OK_STR
));
rfbNewClient
(
rfbScreen
,
rfbScreen
->
httpSock
);
rfbNewClient
Connection
(
rfbScreen
,
rfbScreen
->
httpSock
);
// don't fclose(rfbScreen->httpFP), because this would kill the connection
rfbScreen
->
httpFP
=
NULL
;
rfbScreen
->
httpSock
=
-
1
;
...
...
@@ -280,7 +280,7 @@ httpProcessInput(rfbScreenInfoPtr rfbScreen)
// proxy connection
rfbLog
(
"httpd: client asked for /proxied.connection
\n
"
);
WriteExact
(
&
cl
,
PROXY_OK_STR
,
strlen
(
PROXY_OK_STR
));
rfbNewClient
(
rfbScreen
,
rfbScreen
->
httpSock
);
rfbNewClient
Connection
(
rfbScreen
,
rfbScreen
->
httpSock
);
// don't fclose(rfbScreen->httpFP), because this would kill the connection
rfbScreen
->
httpFP
=
NULL
;
rfbScreen
->
httpSock
=
-
1
;
...
...
rfbserver.c
View file @
b34beb1b
...
...
@@ -35,8 +35,10 @@
#include <pwd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#endif
#include <fcntl.h>
#include <sys/types.h>
#ifdef CORBA
...
...
@@ -213,6 +215,8 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP)
if
(
isUDP
)
{
rfbLog
(
" accepted UDP client
\n
"
);
}
else
{
int
one
=
1
;
getpeername
(
sock
,
(
struct
sockaddr
*
)
&
addr
,
&
addrlen
);
cl
->
host
=
strdup
(
inet_ntoa
(
addr
.
sin_addr
));
...
...
@@ -223,6 +227,21 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP)
}
rfbReleaseClientIterator
(
iterator
);
#ifndef WIN32
if
(
fcntl
(
sock
,
F_SETFL
,
O_NONBLOCK
)
<
0
)
{
rfbLogPerror
(
"fcntl failed"
);
close
(
sock
);
return
NULL
;
}
#endif
if
(
setsockopt
(
sock
,
IPPROTO_TCP
,
TCP_NODELAY
,
(
char
*
)
&
one
,
sizeof
(
one
))
<
0
)
{
rfbLogPerror
(
"setsockopt failed"
);
close
(
sock
);
return
NULL
;
}
FD_SET
(
sock
,
&
(
rfbScreen
->
allFds
));
rfbScreen
->
maxFd
=
max
(
sock
,
rfbScreen
->
maxFd
);
...
...
vncauth.c
View file @
b34beb1b
...
...
@@ -63,7 +63,7 @@ vncEncryptAndStorePasswd(char *passwd, char *fname)
/* windows security sux */
#ifndef WIN32
fchmod
(
f
p
,
S_IRUSR
|
S_IWUSR
);
fchmod
(
f
ileno
(
fp
)
,
S_IRUSR
|
S_IWUSR
);
#endif
/* pad password with nulls */
...
...
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