Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
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
noVNC
Commits
7c1cd937
Commit
7c1cd937
authored
Apr 15, 2013
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove references to wsproxy.
Also, update nova-novncproxy to import websockify instead of wsproxy.
parent
7dc038ef
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
17 deletions
+14
-17
.gitignore
.gitignore
+0
-1
novnc.install
debian/novnc.install
+0
-1
notes
docs/notes
+1
-1
README.md
utils/README.md
+6
-7
launch.sh
utils/launch.sh
+1
-1
nova-novncproxy
utils/nova-novncproxy
+4
-4
rebind.c
utils/rebind.c
+2
-2
No files found.
.gitignore
View file @
7c1cd937
*.pyc
*.o
wsproxy
tests/data_*.js
utils/rebind.so
debian/novnc.install
View file @
7c1cd937
...
...
@@ -6,7 +6,6 @@ utils/Makefile /usr/share/novnc/utils
utils
/
launch
.
sh
/
usr
/
share
/
novnc
/
utils
utils
/
websocket
.
py
/
usr
/
share
/
novnc
/
utils
utils
/
websockify
/
usr
/
share
/
novnc
/
utils
utils
/
wsproxy
.
py
/
usr
/
share
/
novnc
/
utils
utils
/
rebind
.
c
/
usr
/
share
/
novnc
/
utils
utils
/
rebind
.
so
/
usr
/
share
/
novnc
/
utils
images
/
usr
/
share
/
novnc
...
...
docs/notes
View file @
7c1cd937
...
...
@@ -8,7 +8,7 @@ Javascript doesn't have a bytearray type, so what you get out of
a WebSocket object is just Javascript strings. Javascript has UTF-16
unicode strings and anything sent through the WebSocket gets converted
to UTF-8 and vice-versa. So, one additional (and necessary) function
of w
sprox
y is base64 encoding/decoding what is sent to/from the
of w
ebsockif
y is base64 encoding/decoding what is sent to/from the
browser.
Building web-socket-js emulator:
...
...
utils/README.md
View file @
7c1cd937
## WebSockets Proxy
wsproxy has become
[
websockify
](
https://github.com/kanaka/websockify
)
.
A copy of the python version of websockify (named wsproxy.py) is kept
here for ease of use. The other versions of websockify (C, Node.js)
and the associated test programs have been moved to
[
websockify
](
https://github.com/kanaka/websockify
)
.
## WebSockets Proxy/Bridge
For more detailed description and usage information please refer to
the
[
websockify README
](
https://github.com/kanaka/websockify/blob/master/README.md
)
.
The other versions of websockify (C, Node.js) and the associated test
programs have been moved to
[
websockify
](
https://github.com/kanaka/websockify
)
. Websockify was
formerly named wsproxy.
utils/launch.sh
View file @
7c1cd937
...
...
@@ -102,7 +102,7 @@ else
fi
echo
"Starting webserver and WebSockets proxy on port
${
PORT
}
"
${
HERE
}
/w
sproxy.p
y
--web
${
WEB
}
${
CERT
:+--cert
${
CERT
}}
${
PORT
}
${
VNC_DEST
}
&
${
HERE
}
/w
ebsockif
y
--web
${
WEB
}
${
CERT
:+--cert
${
CERT
}}
${
PORT
}
${
VNC_DEST
}
&
proxy_pid
=
"
$!
"
sleep
1
if
!
ps
-p
${
proxy_pid
}
>
/dev/null
;
then
...
...
utils/nova-novncproxy
View file @
7c1cd937
...
...
@@ -19,7 +19,7 @@
'''
Websocket proxy that is compatible with Openstack Nova.
Leverages w
sproxy.p
y by Joel Martin
Leverages w
ebsockif
y by Joel Martin
'''
import
Cookie
...
...
@@ -27,7 +27,7 @@ from oslo.config import cfg
import
socket
import
sys
import
w
sprox
y
import
w
ebsockif
y
from
nova
import
config
from
nova
import
context
...
...
@@ -73,9 +73,9 @@ if hasattr(rpc, 'register_opts'):
rpc
.
register_opts
(
CONF
)
class
NovaWebSocketProxy
(
w
sprox
y
.
WebSocketProxy
):
class
NovaWebSocketProxy
(
w
ebsockif
y
.
WebSocketProxy
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
w
sprox
y
.
WebSocketProxy
.
__init__
(
self
,
*
args
,
**
kwargs
)
w
ebsockif
y
.
WebSocketProxy
.
__init__
(
self
,
*
args
,
**
kwargs
)
def
new_client
(
self
):
"""
...
...
utils/rebind.c
View file @
7c1cd937
...
...
@@ -7,8 +7,8 @@
* REBIND_PORT_NEW environment variables are set then bind on the new
* port (of localhost) instead of the old port.
*
* This allows a
proxy (such as wsproxy) to run on the old port and translate
* traffic to/from the new port.
* This allows a
bridge/proxy (such as websockify) to run on the old port and
* tra
nslate tra
ffic to/from the new port.
*
* Usage:
* LD_PRELOAD=./rebind.so \
...
...
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