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
60f1770e
Commit
60f1770e
authored
Oct 06, 2005
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
provide a list of the pseudo encodings understood by the extension
parent
354d3c9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
5 deletions
+43
-5
rfbserver.c
libvncserver/rfbserver.c
+37
-4
rfbtightserver.c
libvncserver/tightvnc-filetransfer/rfbtightserver.c
+1
-0
rfb.h
rfb/rfb.h
+5
-1
No files found.
libvncserver/rfbserver.c
View file @
60f1770e
...
...
@@ -935,10 +935,43 @@ rfbProcessClientNormalMessage(rfbClientPtr cl)
break
;
e
=
next
;
}
if
(
e
==
NULL
)
rfbLog
(
"rfbProcessClientNormalMessage: ignoring"
"unknown encoding type %d
\n
"
,
(
int
)
enc
);
if
(
e
==
NULL
)
{
rfbBool
handled
=
FALSE
;
/* if the pseudo encoding is not handled by the
enabled extensions, search through all
extensions. */
rfbProtocolExtension
*
e
;
for
(
e
=
rfbGetExtensionIterator
();
e
;)
{
int
*
encs
=
e
->
pseudoEncodings
;
while
(
encs
&&
*
encs
!=
0
)
{
if
(
*
encs
==
(
int
)
enc
)
{
void
*
data
=
NULL
;
if
(
e
->
newClient
)
e
->
newClient
(
cl
,
&
data
);
if
(
!
e
->
enablePseudoEncoding
(
cl
,
data
,
(
int
)
enc
))
{
rfbLog
(
"Installed extension pretends to handle pseudo encoding 0x%x, but does not!
\n
"
,(
int
)
enc
);
}
else
{
rfbEnableExtension
(
cl
,
e
,
data
);
handled
=
TRUE
;
e
=
NULL
;
break
;
}
}
encs
++
;
}
rfbReleaseExtensionIterator
();
if
(
e
)
e
=
e
->
next
;
}
if
(
!
handled
)
rfbLog
(
"rfbProcessClientNormalMessage: ignoring"
" unknown encoding type %d
\n
"
,
(
int
)
enc
);
}
}
}
}
...
...
libvncserver/tightvnc-filetransfer/rfbtightserver.c
View file @
60f1770e
...
...
@@ -485,6 +485,7 @@ rfbProtocolExtension tightVncFileTransferExtension = {
NULL
,
rfbTightExtensionInit
,
NULL
,
NULL
,
rfbTightExtensionMsgHandler
,
rfbTightExtensionClientClose
,
rfbTightUsage
,
...
...
rfb/rfb.h
View file @
60f1770e
...
...
@@ -165,7 +165,11 @@ typedef struct _rfbProtocolExtension {
/* returns FALSE if extension should be deactivated for client.
if init == NULL, it stays activated. */
rfbBool
(
*
init
)(
struct
_rfbClientRec
*
client
,
void
*
data
);
/* returns TRUE if that pseudo encoding is handled by the extension */
/* if pseudoEncodings is not NULL, it contains a 0 terminated
list of the pseudo encodings handled by this extension. */
int
*
pseudoEncodings
;
/* returns TRUE if that pseudo encoding is handled by the extension.
encodingNumber==0 means "reset encodings". */
rfbBool
(
*
enablePseudoEncoding
)(
struct
_rfbClientRec
*
client
,
void
*
data
,
int
encodingNumber
);
/* returns TRUE if message was handled */
...
...
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